/** * @param \Venne\Security\Role $role * @return boolean */ public function hasRoleEntity(Role $role) { return $this->roleEntities->contains($role); }