public function testNotBlankValidation()
 {
     $notBlank = array('title');
     $this->validateNotBlanks($notBlank);
     $this->object->setTitle('test up to 60 char');
     $this->validate(0);
 }
 public function load(ObjectManager $manager)
 {
     $data = $this->container->get('ilioscore.dataloader.learningMaterialUserRole')->getAll();
     foreach ($data as $arr) {
         $entity = new LearningMaterialUserRole();
         $entity->setId($arr['id']);
         $entity->setTitle($arr['title']);
         $manager->persist($entity);
         $this->addReference('learningMaterialUserRoles' . $arr['id'], $entity);
     }
     $manager->flush();
 }