From 0ad2d2ff87caea085a2753803cce0979bd54f7ba Mon Sep 17 00:00:00 2001 From: MrYamous Date: Mon, 6 Jun 2022 11:42:09 +0200 Subject: [PATCH] [Form] fix EntityType with multiple=true return type --- reference/forms/types/entity.rst | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/reference/forms/types/entity.rst b/reference/forms/types/entity.rst index ec3dbc2eb70..0f97fc42d92 100644 --- a/reference/forms/types/entity.rst +++ b/reference/forms/types/entity.rst @@ -236,7 +236,16 @@ These options inherit from the :doc:`ChoiceType ` .. 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::