You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…Yamous)
This PR was squashed before being merged into the 4.4 branch.
Discussion
----------
[Form] fix EntityType with multiple=true return type
Small fix for #16805 about return type in form with multiple option
I'm doing this on version 4.4 because it's the older maintained, but maybe we need to correct further?
Commits
-------
0ad2d2f [Form] fix EntityType with multiple=true return type
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.The text was updated successfully, but these errors were encountered: