We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b241b1 commit 37d92dfCopy full SHA for 37d92df
reference/forms/types/choice.rst
@@ -188,6 +188,11 @@ is the item's label and the array value is the item's value::
188
'choices_as_values' => true,
189
));
190
191
+If there are choice values that are not scalar or the stringified
192
+representation is not unique Symfony will use incrementing integers
193
+as values. When the form gets submitted the correct values with the
194
+correct types will be assigned to the model.
195
+
196
.. include:: /reference/forms/types/options/choice_attr.rst.inc
197
198
.. _reference-form-choice-label:
0 commit comments