예제 #1
0
 public function salvarRango($parametros)
 {
     $objeto = new Rango();
     $objeto->setName($parametros['nombre']);
     $objeto->setRole('ROLE_' . $parametros['role']);
     $this->em->persist($objeto);
     $this->em->flush();
     return "success";
 }
 /**
  * {@inheritDoc}
  */
 public function setRole($role)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setRole', array($role));
     return parent::setRole($role);
 }