Skip to content

[Forms] EntityType with multiple=true returns ArrayCollection but is documented to return array #16805

Closed
@Xesau

Description

@Xesau

In the documentation (https://symfony.com/doc/current/reference/forms/types/entity.html#multiple) it states that when multiple is enabled, the field should return an array. However, if you look at the tests (https://github.com/symfony/symfony/blob/6.1/src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php) you see that it expects an ArrayCollection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FormhasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions