Permalink
Browse files

minor #4775 Corrected validation information on inheritance (peterrehm)

This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #4775).

Discussion
----------

Corrected validation information on inheritance

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | -
| Related | #4454

Minor fix as per Discussion 09f9d3d#commitcomment-9150852

Commits
-------

230c4fc Corrected validation information on inheritance
  • Loading branch information...
weaverryan committed Jan 5, 2015
2 parents 99aca45 + 230c4fc commit 1972757afc62c7ade55d3775988dae654d88a16f
Showing with 2 additions and 2 deletions.
  1. +2 −2 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::

0 comments on commit 1972757

Please sign in to comment.