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 committed by Thomas Citharel
parent 26ed851f52
commit af95c09c80

View File

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