8000 minor #13720 [Validation] Added a note about validation group names (… · symfony/symfony-docs@6198b74 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6198b74

Browse files
committed
minor #13720 [Validation] Added a note about validation group names (javiereguiluz)
This PR was squashed before being merged into the 4.4 branch. Discussion ---------- [Validation] Added a note about validation group names Fixes #12543. Commits ------- c946abd [Validation] Added a note about validation group names
2 parents 192f678 + c946abd commit 6198b74

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

form/validation_groups.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@ be used to validate the underlying object. To apply the ``registration``
3333
group *and* all constraints that are not in a group, use::
3434

3535
'validation_groups' => ['Default', 'registration']
36+
37+
.. note::
38+
39+
You can choose any name for your validation groups, but Symfony recommends
40+
using "lower snake case" names (e.g. ``foo_bar``) in contrast with the
41+
automatic validation groups created by Symfony, which use "upper camel case"
42+
(e.g. ``Default``, ``SomeClassName``).

0 commit comments

Comments
 (0)
0