Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function load(ObjectManager $manager)
 {
     $symptom1 = new Symptom();
     $symptom1->setName('coughing');
     $manager->persist($symptom1);
     ############
     $symptom2 = new Symptom();
     $symptom2->setName('shortness of breath');
     $manager->persist($symptom2);
     ############
     $symptom3 = new Symptom();
     $symptom3->setName('tiredness');
     $manager->persist($symptom3);
     ##############
     $symptom4 = new Symptom();
     $symptom4->setName('weight loss');
     $manager->persist($symptom4);
     $manager->flush();
 }
 /**
  * {@inheritDoc}
  */
 public function getHealthcondition()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getHealthcondition', array());
     return parent::getHealthcondition();
 }
 /**
  * {@inheritDoc}
  */
 public function getName()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', array());
     return parent::getName();
 }