Skip to content

Commit

Permalink
minor #4775 Corrected validation information on inheritance (peterrehm)
Browse files Browse the repository at this point in the history
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 1972757
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 1972757

Please sign in to comment.