Skip to content

Commit

Permalink
Fixed wrong inheritance information
Browse files Browse the repository at this point in the history
  • Loading branch information
peterrehm authored and xabbuh committed Dec 25, 2016
1 parent 27aa549 commit 49dfdf4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions validation/groups.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand Down

0 comments on commit 49dfdf4

Please sign in to comment.