Remove tag relation when removing an entry

Fix #1453
This commit is contained in:
Jeremy Benoist 2016-01-20 18:35:57 +01:00
parent d481f42b7d
commit 7e80861588

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"})