X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FDataFixtures%2FORM%2FLoadTagData.php;h=09e99f36bb46b222544d6cfe11484e270231ccac;hb=267e8d6361f8e7791a8687f2370a3e9d08af6648;hp=6b13c2beec31970d40b35127a2cd164c44408ef2;hpb=2691cf04384239c546e141af6cc3c22b210dae58;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadTagData.php b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadTagData.php index 6b13c2be..09e99f36 100644 --- a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadTagData.php +++ b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadTagData.php @@ -10,7 +10,7 @@ use Wallabag\CoreBundle\Entity\Tag; class LoadTagData extends AbstractFixture implements OrderedFixtureInterface { /** - * {@inheritDoc} + * {@inheritdoc} */ public function load(ObjectManager $manager) { @@ -19,24 +19,30 @@ class LoadTagData extends AbstractFixture implements OrderedFixtureInterface $manager->persist($tag1); + $this->addReference('foo-tag', $tag1); + $tag2 = new Tag(); $tag2->setLabel('bar'); $manager->persist($tag2); + $this->addReference('bar-tag', $tag2); + $tag3 = new Tag(); $tag3->setLabel('baz'); $manager->persist($tag3); + $this->addReference('baz-tag', $tag3); + $manager->flush(); } /** - * {@inheritDoc} + * {@inheritdoc} */ public function getOrder() { - return 30; + return 25; } }