From 3250ed4f4e9233d5b79a66b3524957c70cbb8139 Mon Sep 17 00:00:00 2001 From: Peter Rehm Date: Tue, 10 Jan 2017 18:49:48 +0100 Subject: [PATCH] Revert "Fixed wrong inheritance information" This reverts commit 6c3ff5e82f706a075be30440a814d471b4e654ef. --- validation/groups.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/validation/groups.rst b/validation/groups.rst index 2e935d27cd3..89ca9bf0dfb 100644 --- a/validation/groups.rst +++ b/validation/groups.rst @@ -166,11 +166,11 @@ the class name or the string ``Default``. object that's actually the one being validated. If you have inheritance (e.g. ``User extends BaseUser``) and you validate - with the class name of the subclass (i.e. ``User``), then only constraints - in the ``User`` will be validated. To validate the parent constraints as -   well you need to provide multiple groups (i.e ``User`` and ``BaseUser``) or -    ``Default``. - + 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 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::