Example #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 __toString()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, '__toString', array());
     return parent::__toString();
 }