Skip to content

Commit f5e18ec

Browse files
committed
Merge branch '5.0' into 5.1
* 5.0: [Validation] Added a note about validation group names
2 parents dda5241 + 75853e0 commit f5e18ec

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)