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:: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy