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