10000 Merge branch '5.4' into 6.3 · symfony/symfony-docs@6ce583b · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ce583b

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: [Validator] Bring precisions on Valid constraint's groups
2 parents 6b82466 + ddb9845 commit 6ce583b

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
@@ -249,6 +249,13 @@ Options
249249

250250
.. include:: /reference/constraints/_groups-option.rst.inc
251251

252+
.. note::
253+
254+
Unlike other constraints, the ``Valid`` constraint does not use the ``Default``
255+
group. This means that it will always be applied by default, **even** if you
256+
specify a group when calling the validator. If you want to restrict the
257+
constraint to a subset of groups, you have to define the ``groups`` option.
258+
252259
.. include:: /reference/constraints/_payload-option.rst.inc
253260

254261
``traverse``

0 commit comments

Comments
 (0)
0