From 886e83fb8b07628b2b41d1c5de77967a77eb195a Mon Sep 17 00:00:00 2001 From: Peter Rehm Date: Mon, 5 Jan 2015 10:59:54 +0100 Subject: [PATCH] Corrected validation information on inheritance --- book/validation.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/validation.rst b/book/validation.rst index be3fb1caeec..da1ee9bca42 100644 --- a/book/validation.rst +++ b/book/validation.rst @@ -847,8 +847,8 @@ the string ``Default``. If you have inheritance (e.g. ``User extends BaseUser``) and you validate with the class name of the subclass (i.e. ``User``), then all constraints in the ``User`` and ``BaseUser`` will be validated. However, if you validate - using the base class (i.e. ``BaseUser``), then only the constraints in - the ``BaseUser`` group will be validated. + using the base class (i.e. ``BaseUser``), then only the default constraints in + the ``BaseUser`` class will be validated. To tell the validator to use a specific group, pass one or more group names as the third argument to the ``validate()`` method::