diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php index 0e19a0c20..d44f9a8a0 100644 --- a/src/Wallabag/CoreBundle/Entity/Entry.php +++ b/src/Wallabag/CoreBundle/Entity/Entry.php @@ -712,7 +712,6 @@ class Entry } $this->tags->add($tag); - $tag->addEntry($this); } /** diff --git a/tests/Wallabag/CoreBundle/Controller/TagControllerTest.php b/tests/Wallabag/CoreBundle/Controller/TagControllerTest.php index 5e8f9f3de..8d04f667a 100644 --- a/tests/Wallabag/CoreBundle/Controller/TagControllerTest.php +++ b/tests/Wallabag/CoreBundle/Controller/TagControllerTest.php @@ -195,7 +195,7 @@ class TagControllerTest extends WallabagCoreTestCase $entry2 = new Entry($this->getLoggedInUser()); $entry2->setUrl('http://0.0.0.0/bar'); $entry2->addTag($tag); - $this->getEntityManager()->persist($entry); + $this->getEntityManager()->persist($entry2); $this->getEntityManager()->flush(); $this->getEntityManager()->clear();