Esempio n. 1
0
 public function load(ObjectManager $manager)
 {
     $tva1 = new Tva();
     $tva1->setMultiplicate('0.833');
     $tva1->setNom('Tva 20%');
     $tva1->setValeur('20');
     $manager->persist($tva1);
     $tva2 = new Tva();
     $tva2->setMultiplicate('0.982');
     $tva2->setNom('Tva 1.75%');
     $tva2->setValeur('1.75');
     $manager->persist($tva2);
     $manager->flush();
     $this->addReference('tva1', $tva1);
     $this->addReference('tva2', $tva2);
 }
 /**
  * {@inheritDoc}
  */
 public function setNom($nom)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setNom', array($nom));
     return parent::setNom($nom);
 }