We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent27aa549 commit49dfdf4Copy full SHA for 49dfdf4
validation/groups.rst
@@ -166,11 +166,11 @@ the class name or the string ``Default``.
166
object that's actually the one being validated.
167
168
If you have inheritance (e.g. ``User extends BaseUser``) and you validate
169
- with the class name of the subclass (i.e. ``User``), thenall constraints
170
- in the ``User``and ``BaseUser``will be validated.However, if you
171
- validate using the base class(i.e. ``BaseUser``), then only the default
172
- constraints in the ``BaseUser`` class will be validated.
173
-
+ with the class name of the subclass (i.e. ``User``), thenonly 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``.
+
174
To tell the validator to use a specific group, pass one or more group names
175
as the third argument to the ``validate()`` method::
176