/**
  * @covers \Ilios\CoreBundle\Entity\MeshSemanticType::stampUpdate
  */
 public function testStampUpdate()
 {
     $now = new \DateTime();
     $this->object->stampUpdate();
     $updatedAt = $this->object->getUpdatedAt();
     $this->assertTrue($updatedAt instanceof \DateTime);
     $diff = $now->diff($updatedAt);
     $this->assertTrue($diff->s < 2);
 }
 public function load(ObjectManager $manager)
 {
     $data = $this->container->get('ilioscore.dataloader.meshSemanticType')->getAll();
     foreach ($data as $arr) {
         $entity = new MeshSemanticType();
         $entity->setId($arr['id']);
         $entity->setName($arr['name']);
         $this->addReference('meshSemanticTypes' . $arr['id'], $entity);
         $manager->persist($entity);
     }
     $manager->flush();
 }