8000 [Validator] Bring precisions on Valid constraint's groups · symfony/symfony-docs@f3bfe35 · GitHub
[go: up one dir, main page]

Skip to content

Commit f3bfe35

Browse files
[Validator] Bring precisions on Valid constraint's groups
1 parent 633c448 commit f3bfe35

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

reference/constraints/Valid.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,13 @@ Options
297297

298298
.. include:: /reference/constraints/_groups-option.rst.inc
299299

300+
.. note::
301+
302+
Unlike other constraints, the ``Valid`` constraint does not use the ``Default``
303+
group. This means that it will always be applied by default, **even** if you
304+
specify a group when calling the validator. If you want to restrict the
305+
constraint to a subset of groups, you have to define the ``groups`` option.
306+
300307
.. include:: /reference/constraints/_payload-option.rst.inc
301308

302309
``traverse``

0 commit comments

Comments
 (0)
0