Skip to content

Commit

Permalink
Corrected validation information on inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
peterrehm authored and weaverryan committed Jan 5, 2015
1 parent 99aca45 commit 230c4fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down

0 comments on commit 230c4fc

Please sign in to comment.