/** * @return \Venne\Security\Role[] */ public function getWriteRoles() { if (!$this->isAllowedToRead()) { throw new PermissionDeniedException(); } return $this->writeRoles->toArray(); }
/** * @param Role $child */ public function removeChildren(Role $child) { $this->children->removeElement($child); }
public function removeRoleEntity(Role $role) { $this->roleEntities->removeElement($role); }