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 setParentComment(\Civix\CoreBundle\Entity\BaseComment $parentComment = NULL) { $this->__load(); return parent::setParentComment($parentComment); }