Ejemplo n.º 1
0
 public function load(ObjectManager $manager)
 {
     $firstComment = new Comment();
     $firstComment->setCommentBody('comment');
     $firstComment->setParentComment(null);
     $firstComment->setQuestion($this->getReference('question1'));
     $this->addReference('comment1', $firstComment);
     $manager->persist($firstComment);
     $manager->flush();
 }
 public function setCommentBody($commentBody)
 {
     $this->__load();
     return parent::setCommentBody($commentBody);
 }