X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FDataFixtures%2FORM%2FLoadTaggingRuleData.php;h=7efe6356e836385306240d900ff5e1f89d280e51;hb=5ecdfcd041767c9e3244a92bb0a6cc3c3f80fea3;hp=09a08bb20dc03d475ac2cc23b2fb56ce1c71e912;hpb=d25b8288216a09fa5cf7f40e614c133a6edd8a67;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadTaggingRuleData.php b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadTaggingRuleData.php index 09a08bb2..7efe6356 100644 --- a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadTaggingRuleData.php +++ b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadTaggingRuleData.php @@ -16,18 +16,26 @@ class LoadTaggingRuleData extends AbstractFixture implements OrderedFixtureInter { $tr1 = new TaggingRule(); $tr1->setRule('content matches "spurs"'); - $tr1->setTags(array('sport')); + $tr1->setTags(['sport']); $tr1->setConfig($this->getReference('admin-config')); $manager->persist($tr1); $tr2 = new TaggingRule(); $tr2->setRule('content matches "basket"'); - $tr2->setTags(array('sport')); + $tr2->setTags(['sport']); $tr2->setConfig($this->getReference('admin-config')); $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(); }