From 1c79cad5de50062f1436bb163d9743bca55d1374 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 4 Jan 2015 11:38:24 +0100 Subject: [PATCH] clarify group validation --- book/validation.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/validation.rst b/book/validation.rst index be3fb1caeec..be1032e1769 100644 --- a/book/validation.rst +++ b/book/validation.rst @@ -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