Skip to content

[Form] Deletion not handled on collection field since 2.3.10 #10256

@ohaag

Description

@ohaag

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions