private function buildPubEntity($citEntity, &$em)
 {
     $pubEntity = new Publication();
     $pubEntity->setCreatedBy($em->getRepository('AppBundle:User')->findOneBy(array('id' => '6')));
     $pubEntity->setDisplayName($citEntity->getTitle());
     $pubEntity->setPublicationType($em->getRepository("AppBundle:PublicationType")->findOneBy(array("displayName" => "Article")));
     $em->persist($pubEntity);
     return $pubEntity;
 }
 private function addPub($pubVals, &$em)
 {
     print "\n    add pub ->" . $pubVals[0];
     $pubEntity = new Publication();
     $pubEntity->setCreatedBy($em->getRepository('AppBundle:User')->findOneBy(array('id' => '6')));
     $pubEntity->setDisplayName($pubVals[0]);
     $pubEntity->setDescription($pubVals[1]);
     $pubEntity->setPublicationType($em->getRepository("AppBundle:PublicationType")->findOneBy(array("displayName" => $pubVals[2])));
     $em->persist($pubEntity);
     return $pubEntity;
 }