Example #1
0
 public function load(ObjectManager $manager)
 {
     //Administrador general de arquigestor
     $role = new Role();
     $role->setName('ROLE_SUPER_ADMIN');
     $role->setDescription('Administrador general de Arquigestor');
     $manager->persist($role);
     $this->addReference('ROLE_SUPER_ADMIN', $role);
     $manager->flush();
 }
 /**
  * {@inheritDoc}
  */
 public function unserialize($serialized)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'unserialize', array($serialized));
     return parent::unserialize($serialized);
 }