From 230c4fc693f78c929031fc8a594ec0729031edce 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 e81fa66d5c6..70d21eec5be 100644 --- a/book/validation.rst +++ b/book/validation.rst @@ -844,8 +844,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 second argument to the ``validate()`` method::