common/models/entities/Site.php
public function getMembers() {

		$siteMemberTable = CoreTables::getTableName( CoreTables::TABLE_SITE_MEMBER );

		return $this->hasMany( User::class, [ 'id' => 'userId' ] )
			->viaTable( $siteMemberTable, [ 'siteId' => 'id' ] );
	}
public function getMembers() {

		$siteMemberTable = CoreTables::getTableName( CoreTables::TABLE_SITE_MEMBER );

		return $this->hasMany( User::class, [ 'id' => 'userId' ] )
			->viaTable( $siteMemberTable, [ 'siteId' => 'id' ] );
	}
public function getMembers ( ) { $ siteMemberTable = CoreTables :: getTableName ( CoreTables :: TABLE_SITE_MEMBER ) ; return $ this -> hasMany ( User :: class , [ 'id' => 'userId' ] ) -> viaTable ( $ siteMemberTable , [ 'siteId' => 'id' ] ) ; }
Return members of the site.

@return User[]
Return members of the site .