]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Move fixtures to the right place
authorJeremy Benoist <jeremy.benoist@gmail.com>
Mon, 30 May 2016 12:18:47 +0000 (14:18 +0200)
committerThomas Citharel <tcit@tcit.fr>
Thu, 23 Jun 2016 07:15:50 +0000 (09:15 +0200)
src/Wallabag/CoreBundle/DataFixtures/ORM/LoadConfigData.php
src/Wallabag/CoreBundle/DataFixtures/ORM/LoadTaggingRuleData.php

index 5a3764538aa73ec411467eb564dc2efb16d98d3c..ebfebfea5c0b7400b50768f385ed1a0a8b2e81d4 100644 (file)
@@ -16,12 +16,6 @@ class LoadConfigData extends AbstractFixture implements OrderedFixtureInterface
     public function load(ObjectManager $manager)
     {
         $adminConfig = new Config($this->getReference('admin-user'));
-        $taggingRule = new TaggingRule();
-
-        $taggingRule->setConfig($adminConfig);
-        $taggingRule->setRule('title matches "wallabag"');
-        $taggingRule->setTags(['wallabag']);
-        $manager->persist($taggingRule);
 
         $adminConfig->setTheme('material');
         $adminConfig->setItemsPerPage(30);
index 2e1cc2700d20b4a7c51d39753c00429364c8af18..7efe6356e836385306240d900ff5e1f89d280e51 100644 (file)
@@ -28,6 +28,14 @@ class LoadTaggingRuleData extends AbstractFixture implements OrderedFixtureInter
 
         $manager->persist($tr2);
 
+        $tr3 = new TaggingRule();
+
+        $tr3->setRule('title matches "wallabag"');
+        $tr3->setTags(['wallabag']);
+        $tr3->setConfig($this->getReference('admin-config'));
+
+        $manager->persist($tr3);
+
         $manager->flush();
     }