From: Jeremy Benoist Date: Wed, 20 Jan 2016 17:35:57 +0000 (+0100) Subject: Remove tag relation when removing an entry X-Git-Tag: 2.0.0-alpha.2~4^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=7e808615885084a32e6be4ec3401f0fa288f4e1d;p=github%2Fwallabag%2Fwallabag.git Remove tag relation when removing an entry Fix #1453 --- diff --git a/src/Wallabag/CoreBundle/Entity/Entry.php b/src/Wallabag/CoreBundle/Entity/Entry.php index 24b24dbb..bf8db5ab 100644 --- a/src/Wallabag/CoreBundle/Entity/Entry.php +++ b/src/Wallabag/CoreBundle/Entity/Entry.php @@ -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"})