Skip to content

[Question][Form] CollectionType #31858

Closed
Closed
@jvahldick

Description

@jvahldick

Hey guys,

Once I upgraded the Symfony version from 4.1 to 4.2, I noticed a change of behaviour regarding the CollectionType once I have nested arrays (array of arrays) on the payload, which previously I needed just to set the allow_extra_fields and allow_add options to true, and it identified the whole payload. Nowadays, it seems that is identifying just the fields compatible with the entry_type (And if I set the entry_type as CollectionType::class, it identifies the first level of the following one and so on).

Is this change expected?
Can you point me on the code where it was changed? (or the issue number)

I tried to find it on the changelog, but I couldn't find anything related.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions