From 6c3ff5e82f706a075be30440a814d471b4e654ef Mon Sep 17 00:00:00 2001 From: Peter Rehm Date: Tue, 13 Dec 2016 13:36:59 +0100 Subject: [PATCH] Fixed wrong inheritance information --- validation/groups.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/validation/groups.rst b/validation/groups.rst index 89ca9bf0dfb..2e935d27cd3 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 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. - + 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``. + To tell the validator to use a specific group, pass one or more group names as the third argument to the ``validate()`` method::