public function getFriend() {

		$userTable = CoreTables::getTableName( CoreTables::TABLE_USER );

		return $this->hasOne( User::class, [ 'id' => 'friendId' ] )->from( "$userTable as friend" );
	}
public function getFriend() {

		$userTable = CoreTables::getTableName( CoreTables::TABLE_USER );

		return $this->hasOne( User::class, [ 'id' => 'friendId' ] )->from( "$userTable as friend" );
	}
public function getFriend ( ) { $ userTable = CoreTables :: getTableName ( CoreTables :: TABLE_USER ) ; return $ this -> hasOne ( User :: class , [ 'id' => 'friendId' ] ) -> from ( "$userTable as friend" ) ; }
Return user who got friendship invite.

@return \cmsgears\core\common\models\entities\User
Return user who got friendship invite .