public function load(ObjectManager $manager) { $data = $this->container->get('ilioscore.dataloader.aamcMethod')->getAll(); foreach ($data as $arr) { $entity = new AamcMethod(); $entity->setId($arr['id']); $entity->setDescription($arr['description']); $manager->persist($entity); $this->addReference('aamcMethods' . $arr['id'], $entity); } $manager->flush(); }
/** * @covers \Ilios\CoreBundle\Entity\AamcMethod::__construct */ public function testConstructor() { $this->assertEmpty($this->object->getSessionTypes()); }