-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
Description
Although the param allow_delete is set to true on the field. When the form is submit, during the handler of the request, the base entity of the form get back the erased entity in the form.
http://symfony.com/doc/2.3/cookbook/form/form_collections.html#allowing-tags-to-be-removed
This is exactly the example it concerns. I'm currently in the case : "Doctrine: Ensuring the database persistence"
"$task->getTags()" contains the same data than "$originalTags", so the comparison made with "false === $task->getTags()->contains($tag)" can't render the wished result.
This problem occured in 2.3.10 and not in 2.3.9