From c946abd50e0c5f7202689514d202418faf00a5a6 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 28 May 2020 17:34:48 +0200 Subject: [PATCH] [Validation] Added a note about validation group names --- form/validation_groups.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/form/validation_groups.rst b/form/validation_groups.rst index 09b420bceaf..2dfe2889de9 100644 --- a/form/validation_groups.rst +++ b/form/validation_groups.rst @@ -33,3 +33,10 @@ be used to validate the underlying object. To apply the ``registration`` group *and* all constraints that are not in a group, use:: 'validation_groups' => ['Default', 'registration'] + +.. note:: + + You can choose any name for your validation groups, but Symfony recommends + using "lower snake case" names (e.g. ``foo_bar``) in contrast with the + automatic validation groups created by Symfony, which use "upper camel case" + (e.g. ``Default``, ``SomeClassName``).