Example #1
0
 public function load(ObjectManager $manager)
 {
     $education = new Education();
     $education->setRowOrder(1);
     $education->setEducationInstitute('My First School');
     $education->setQualification('My First Qualification');
     $education->setStartDate(new \DateTime("now"));
     $education->setDuration('1');
     $education->setResult('Super Duper Passed');
     $manager->persist($education);
     $manager->flush();
 }
Example #2
0
 public function __construct(EntityManager $em)
 {
     $this->originalEntityName = Education::getRepoName();
     parent::__construct($em);
 }