Merge pull request #1606 from wallabag/v2-tag-cascade

Remove tag relation when removing an entry
This commit is contained in:
Nicolas Lœuillet 2016-01-21 08:38:37 +01:00
commit eff6a406f3

View file

@ -168,7 +168,7 @@ class Entry
private $user;
/**
* @ORM\ManyToMany(targetEntity="Tag", inversedBy="entries", cascade={"persist"})
* @ORM\ManyToMany(targetEntity="Tag", inversedBy="entries", cascade={"persist", "remove"})
* @ORM\JoinTable
*
* @Groups({"entries_for_user", "export_all"})