8000 [Validation] Revert #7249 by peterrehm · Pull Request #7349 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content
8000

[Validation] Revert #7249 #7349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Revert "Fixed wrong inheritance information"
This reverts commit 6c3ff5e.
  • Loading branch information
peterrehm committed Jan 10, 2017
commit 3250ed4f4e9233d5b79a66b3524957c70cbb8139
10 changes: 5 additions & 5 deletions validation/groups.rst
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ the class name or the string ``Default``.
object that's actually the one being validated.

If you have inheritance (e.g. ``User extends BaseUser``) and you validate
with the class name of the subclass (i.e. ``User``), then only 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``.
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 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 third argument to the ``validate()`` method::

Expand Down
0