common/models/entities/User.php
public function getActiveSiteMember() {

		$site		= Yii::$app->core->site;

		return $this->hasOne( SiteMember::class, [ "userId" => 'id' ] )->where( [ "siteId" => $site->id ] );
	}
public function getActiveSiteMember() {

		$site		= Yii::$app->core->site;

		return $this->hasOne( SiteMember::class, [ "userId" => 'id' ] )->where( [ "siteId" => $site->id ] );
	}
public function getActiveSiteMember ( ) { $ site = Yii :: $ app -> core -> site ; return $ this -> hasOne ( SiteMember :: class , [ "userId" => 'id' ] ) -> where ( [ "siteId" => $ site -> id ] ) ; }
Returns site member mapping of active site.

It's useful in multi-site environment to get the member of current site.

@return \cmsgears\core\common\models\mappers\SiteMember
Returns site member mapping of active site .