getReference('admin-user')); $comment1->setEntry($this->getReference('entry1')); $comment1->setText('This is my comment /o/'); $comment1->setQuote('content'); $manager->persist($comment1); $this->addReference('comment1', $comment1); $comment2 = new Comment($this->getReference('admin-user')); $comment2->setEntry($this->getReference('entry2')); $comment2->setText('This is my 2nd comment /o/'); $comment2->setQuote('content'); $manager->persist($comment2); $this->addReference('comment2', $comment2); $manager->flush(); } /** * {@inheritdoc} */ public function getOrder() { return 35; } }