From d1beaff20d8914cde9e39bda5004a74da814bfec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Tue, 9 Oct 2018 11:09:16 +0200 Subject: [PATCH] [Form][Validation] User $user instead of $users Fixed example where it feels more natural to register only one user and not a collection of users --- form/validation_groups.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/form/validation_groups.rst b/form/validation_groups.rst index 7dd5f940de7..fe38d24dbdb 100644 --- a/form/validation_groups.rst +++ b/form/validation_groups.rst @@ -10,7 +10,7 @@ Validation Groups If your object takes advantage of :doc:`validation groups `, you'll need to specify which validation group(s) your form should use:: - $form = $this->createFormBuilder($users, array( + $form = $this->createFormBuilder($user, array( 'validation_groups' => array('registration'), ))->add(...);