]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Change ManyToMany between entry & tag
authorJeremy Benoist <jeremy.benoist@gmail.com>
Mon, 30 May 2016 12:34:11 +0000 (14:34 +0200)
committerThomas Citharel <tcit@tcit.fr>
Thu, 23 Jun 2016 07:15:50 +0000 (09:15 +0200)
commite42b13bcff41161ecdb4322dce1ef98a401482ca
treefcec3ed14bcb9d2d0ea4d07647dbcb61c9aae9fe
parent6334f2cac16158a0ea4a8e540ace17550085942b
Change ManyToMany between entry & tag

Following https://gist.github.com/Ocramius/3121916

Be sure to remove the related entity when removing an entity.

Let say you have Entry -> EntryTag -> Tag.
If you remove the entry:

 - before that commit, the EntryTag will stay (at least using SQLite).
 - with that commit, the related entity is removed
src/Wallabag/CoreBundle/DataFixtures/ORM/LoadConfigData.php
src/Wallabag/CoreBundle/Entity/Entry.php
src/Wallabag/CoreBundle/Entity/Tag.php
src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php