Exemple #1
0
 /**
  * Load the Project
  *
  * @param ObjectManager $manager
  */
 public function load(ObjectManager $manager)
 {
     $idea = new Idea();
     $idea->setNumber('1');
     $idea->setDescription('This is an idea description');
     $idea->setIdea("TIAD");
     $idea->setContact($manager->find("Contact\\Entity\\Contact", 1));
     $idea->setCall($manager->find("Program\\Entity\\Call\\Call", 1));
     $idea->setKeywords('test, idea, woei');
     $idea->setTitle('This is the title');
     $idea->setShortDescription('This is the short description');
     $idea->setApplicationDescription("This is the application description");
     $idea->setExternalPartners('These are the external partners');
     $idea->setHasPresentation(Idea::HAS_PRESENTATION);
     $idea->setHasPoster(Idea::HAS_POSTER);
     $idea->setVisibility(Idea::VISIBILITY_VISIBLE);
     $manager->persist($idea);
     $manager->flush();
 }