Fix the deletion of Tags/Entries relation when delete an entry

Fix #2121
This commit is contained in:
Nicolas Lœuillet 2016-05-28 13:38:59 +02:00
parent 2857aaa994
commit f41c840b8c
No known key found for this signature in database
GPG key ID: 5656BE27E1E34D0A

View file

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