X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FDataFixtures%2FORM%2FLoadTaggingRuleData.php;h=55abd63cda9a3d26562521eef55470ecd51f3376;hb=873f6b8e03079d11fab541aa5b0bc6f8fe2d645e;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..55abd63c 100644 --- a/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadTaggingRuleData.php +++ b/src/Wallabag/CoreBundle/DataFixtures/ORM/LoadTaggingRuleData.php @@ -16,18 +16,33 @@ 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); + + $tr4 = new TaggingRule(); + $tr4->setRule('content notmatches "basket"'); + $tr4->setTags(['foot']); + $tr4->setConfig($this->getReference('admin-config')); + + $manager->persist($tr4); + $manager->flush(); }