8000 minor #10457 [Form][Validation] User $user instead of $users (lyrixx) · symfony/symfony-docs@c8094e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit c8094e2

Browse files
committed
minor #10457 [Form][Validation] User $user instead of $users (lyrixx)
This PR was merged into the 2.8 branch. Discussion ---------- [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 Commits ------- d1beaff [Form][Validation] User $user instead of $users
2 parents bbb97e4 + d1beaff commit c8094e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

form/validation_groups.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Validation Groups
1010
If your object takes advantage of :doc:`validation groups </validation/groups>`,
1111
you'll need to specify which validation group(s) your form should use::
1212

13-
$form = $this->createFormBuilder($users, array(
13+
$form = $this->createFormBuilder($user, array(
1414
'validation_groups' => array('registration'),
1515
))->add(...);
1616

0 commit comments

Comments
 (0)
0