Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function load(ObjectManager $manager)
 {
     $tag = new Tag();
     $tag->setWord('Hello Promo P2016!');
     $tag2 = new Tag();
     $tag2->setWord('Hetic Symfony 2!');
     $manager->persist($tag);
     $manager->persist($tag2);
     $manager->flush();
 }
Пример #2
0
 /**
  * {@inheritDoc}
  */
 public function load(ObjectManager $manager)
 {
     $tag = new Tag();
     $tag->setWord('coucou');
     $manager->persist($tag);
     $manager->flush();
     $tag = new Tag();
     $tag->setWord('bonjour');
     $manager->persist($tag);
     $manager->flush();
 }