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
 /**
  * @return Role[]
  */
 public function getChildren()
 {
     return $this->children->toArray();
 }
Example #3
0
File: User.php Project: venne/venne
 /**
  * @return ArrayCollection|Role[]
  */
 public function getRoleEntities()
 {
     return $this->roleEntities->toArray();
 }