Example #1
0
 /**
  * @return \Venne\Security\Role[]
  */
 public function getWriteRoles()
 {
     if (!$this->isAllowedToRead()) {
         throw new PermissionDeniedException();
     }
     return $this->writeRoles->toArray();
 }
Example #2
0
File: Role.php Project: venne/venne
 /**
  * @param Role $child
  */
 public function removeChildren(Role $child)
 {
     $this->children->removeElement($child);
 }
Example #3
0
File: User.php Project: venne/venne
 public function removeRoleEntity(Role $role)
 {
     $this->roleEntities->removeElement($role);
 }