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 77804f9 commit 36f1d83Copy full SHA for 36f1d83
reference/forms/types/choice.rst
@@ -195,6 +195,19 @@ correct types will be assigned to the model.
195
196
.. include:: /reference/forms/types/options/group_by.rst.inc
197
198
+match
199
+~~~~~
200
+
201
+**type**: ``boolean`` **default**: ``true``
202
203
+When this option is ``false``, the constraint checks that the given value is
204
+not one of the values defined in the ``choices`` option. In practice, it makes
205
+the ``Choice`` constraint behave like a ``NotChoice`` constraint.
206
207
+.. versionadded:: 6.2
208
209
+ The ``match`` option was introduced in Symfony 6.2.
210
211
.. include:: /reference/forms/types/options/multiple.rst.inc
212
213
.. include:: /reference/forms/types/options/placeholder.rst.inc
0 commit comments