merged branch bschussek/fix-validator (PR #7919)

This PR was merged into the 2.2 branch.

Discussion
----------

[Validator] Fixed: $traverse and $deep is passed to the visitor from Validator::validate()

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

59b78c7 [Validator] Fixed: $traverse and $deep is passed to the visitor from Validator::validate()
This commit is contained in:
Fabien Potencier 2013-05-03 16:19:45 +02:00
commit cf35eb8ccb

View File

@ -87,7 +87,7 @@ class Validator implements ValidatorInterface
$visitor = $this->createVisitor($value);
foreach ($this->resolveGroups($groups) as $group) {
$visitor->validate($value, $group, '');
$visitor->validate($value, $group, '', $traverse, $deep);
}
return $visitor->getViolations();