From f38e03dc02c96344677fd2720912605b21c90b5d Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 7 Feb 2016 16:52:59 +0100 Subject: Comment work with annotator v2 - add missing annotator.js file and fix typo - edit & delete routes, started tests - basic tests --- .../DataFixtures/ORM/LoadCommentData.php | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/Wallabag/CommentBundle/DataFixtures/ORM/LoadCommentData.php (limited to 'src/Wallabag/CommentBundle/DataFixtures') diff --git a/src/Wallabag/CommentBundle/DataFixtures/ORM/LoadCommentData.php b/src/Wallabag/CommentBundle/DataFixtures/ORM/LoadCommentData.php new file mode 100644 index 00000000..717f4863 --- /dev/null +++ b/src/Wallabag/CommentBundle/DataFixtures/ORM/LoadCommentData.php @@ -0,0 +1,45 @@ +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; + } +} -- cgit v1.2.3