Ejemplo n.º 1
0
 public function load(ObjectManager $manager)
 {
     $data = $this->container->get('ilioscore.dataloader.recurringEvent')->getAll();
     foreach ($data as $arr) {
         $entity = new RecurringEvent();
         $entity->setId($arr['id']);
         $manager->persist($entity);
         $this->addReference('recurringEvents' . $arr['id'], $entity);
     }
     $manager->flush();
 }
Ejemplo n.º 2
0
 /**
  * @covers Ilios\CoreBundle\Entity\RecurringEvent::__construct
  */
 public function testConstructor()
 {
     $this->assertEmpty($this->object->getOfferings());
 }