示例#1
0
 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();
 }
示例#2
0
 /**
  * @covers \Ilios\CoreBundle\Entity\AamcMethod::__construct
  */
 public function testConstructor()
 {
     $this->assertEmpty($this->object->getSessionTypes());
 }