Ejemplo n.º 1
0
 /**
  * Get roles
  *
  * @return Doctrine\Common\Collections\Collection
  */
 public function getRoles()
 {
     if ($this->rol->getNombre() == "Administrador") {
         return array('ROLE_ADMINISTRADOR');
     } elseif ($this->rol->getNombre() == "Asistente") {
         return array('ROLE_ASISTENTE');
     } else {
         return array('ROLE_PROFESOR');
     }
 }
 /**
  * {@inheritDoc}
  */
 public function getRole()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getRole', array());
     return parent::getRole();
 }