/** * Checks if the current user is blocking the given user. * * @param GenericORMapperDataObject $User The user which is maybe blocked by the current user. * * @return bool */ public function hasUserOnBlacklist(GenericORMapperDataObject &$User) { return $this->ORM->isAssociated('User2BlockedUser', $this->User, $User); }