File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -841,10 +841,11 @@ the string ``Default``.
841
841
In other words, the ``Default `` group and the class name group (e.g. ``User ``) are identical,
842
842
except when the class is embedded in another object that's actually the one being validated.
843
843
844
- In case you have inheritance in your data model and you validate with the class name of
845
- the subclass in the subclass and in the baseclass all constraints in the default group
846
- will be validated. If you use the name of the baseclass only the constraints in the base
847
- class will be validated.
844
+ If you have inheritance (e.g. ``User extends BaseUser ``) and you validate
845
+ with the class name of the subclass (i.e. ``User ``), then all constraints
846
+ in the ``User `` and ``BaseUser `` will be validated. However, if you validate
847
+ using the base class (i.e. ``BaseUser ``), then only the constraints in
848
+ the ``BaseUser `` group will be validated.
848
849
849
850
To tell the validator to use a specific group, pass one or more group names
850
851
as the second argument to the ``validate() `` method::
You can’t perform that action at this time.
0 commit comments