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