Ejemplo n.º 1
0
 /**
  * @return \Venne\Security\Role[]
  */
 public function getWriteRoles()
 {
     if (!$this->isAllowedToRead()) {
         throw new PermissionDeniedException();
     }
     return $this->writeRoles->toArray();
 }
Ejemplo n.º 2
0
Archivo: Role.php Proyecto: venne/venne
 /**
  * @return Role[]
  */
 public function getChildren()
 {
     return $this->children->toArray();
 }
Ejemplo n.º 3
0
Archivo: User.php Proyecto: venne/venne
 /**
  * @return ArrayCollection|Role[]
  */
 public function getRoleEntities()
 {
     return $this->roleEntities->toArray();
 }