Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function load(ObjectManager $manager)
 {
     $categorie1 = new Categories();
     $categorie1->setNom('legumes');
     $categorie1->setImage($this->getReference('media3'));
     $manager->persist($categorie1);
     $categorie2 = new Categories();
     $categorie2->setNom('fruits');
     $categorie2->setImage($this->getReference('media9'));
     $manager->persist($categorie2);
     $manager->flush();
     $this->addReference('categorie1', $categorie1);
     $this->addReference('categorie2', $categorie2);
 }
 /**
  * {@inheritDoc}
  */
 public function getImage()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getImage', array());
     return parent::getImage();
 }
 /**
  * {@inheritDoc}
  */
 public function __toString()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, '__toString', array());
     return parent::__toString();
 }