Skip to content

Commit

Permalink
clarify group validation
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Jan 4, 2015
1 parent 9f82c6f commit 1c79cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -856,10 +856,10 @@ as the third argument to the ``validate()`` method::
// If you're using the new 2.5 validation API (you probably are!)
$errors = $validator->validate($author, null, array('registration'));

// If you're using the old 2.4 validation API
// If you're using the old 2.4 validation API, pass the group names as the second argument
// $errors = $validator->validate($author, array('registration'));

If no groups are specified, all constraints that belong in group ``Default``
If no groups are specified, all constraints that belong to the group ``Default``
will be applied.

Of course, you'll usually work with validation indirectly through the form
Expand Down

0 comments on commit 1c79cad

Please sign in to comment.