Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Form] fix EntityType with multiple=true return type #16849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion reference/forms/types/entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,16 @@ These options inherit from the :doc:`ChoiceType </reference/forms/types/choice>`

.. include:: /reference/forms/types/options/group_by.rst.inc

.. include:: /reference/forms/types/options/multiple.rst.inc
``multiple``
~~~~~~~~~~~~

**type**: ``boolean`` **default**: ``false``

If true, the user will be able to select multiple options (as opposed
to choosing just one option). Depending on the value of the ``expanded``
option, this will render either a select tag or checkboxes if true and
a select tag or radio buttons if false. The returned value will be a
Doctrine's Array Collection.

.. note::

Expand Down