/** * Load data fixtures with the passed EntityManager * * @param ObjectManager $manager */ public function load(ObjectManager $manager) { $role = new Role(); $role->setName('Visitante'); $manager->persist($role); $visitante = $manager->getReference('Acl\\Entity\\Role', 1); $role = new Role(); $role->setName('Registrado')->setParent($visitante); $manager->persist($role); $registrado = $manager->getReference('Acl\\Entity\\Role', 2); $role = new Role(); $role->setName('Redator')->setParent($registrado); $manager->persist($role); $role = new Role(); $role->setName('Admin')->setIsAdmin(true); $manager->persist($role); $manager->flush(); }
/** * {@inheritDoc} */ public function setUpdatedAt() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedAt', array()); return parent::setUpdatedAt(); }