Skip to content

Commit bd7d246

Browse files
committed
minor #4752 [Book][Validation] clarify group validation (xabbuh)
This PR was merged into the 2.5 branch. Discussion ---------- [Book][Validation] clarify group validation | Q | A | ------------- | --- | Doc fix? | no | New docs? | no | Applies to | 2.5+ | Fixed tickets | part of #4094 This is for item `F` of #4094. Actually, we didn't have anything wrong as long as I didn't miss anything. I only made two little changes to fix a sentence and clarify the legacy API. Commits ------- 1c79cad clarify group validation
2 parents 1f343b1 + 1c79cad commit bd7d246

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/validation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -856,10 +856,10 @@ as the third argument to the ``validate()`` method::
856856
// If you're using the new 2.5 validation API (you probably are!)
857857
$errors = $validator->validate($author, null, array('registration'));
858858

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

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

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

0 commit comments

Comments
 (0)