diff --git a/src/Symfony/Component/Validator/GraphWalker.php b/src/Symfony/Component/Validator/GraphWalker.php index f06d10b9fe..0f4b99e634 100644 --- a/src/Symfony/Component/Validator/GraphWalker.php +++ b/src/Symfony/Component/Validator/GraphWalker.php @@ -72,7 +72,7 @@ class GraphWalker if ($metadata->hasGroupSequence()) { $groups = $metadata->getGroupSequence(); } else { - $groups = $object->getValidationGroups(); + $groups = $object->getGroupSequence(); } foreach ($groups as $group) { diff --git a/src/Symfony/Component/Validator/GroupSequenceProviderInterface.php b/src/Symfony/Component/Validator/GroupSequenceProviderInterface.php index 0265691a6d..676a3b399f 100644 --- a/src/Symfony/Component/Validator/GroupSequenceProviderInterface.php +++ b/src/Symfony/Component/Validator/GroupSequenceProviderInterface.php @@ -22,5 +22,5 @@ interface GroupSequenceProviderInterface * * @return array An array of validation groups */ - function getValidationGroups(); + function getGroupSequence(); } diff --git a/tests/Symfony/Tests/Component/Validator/Fixtures/GroupSequenceProviderEntity.php b/tests/Symfony/Tests/Component/Validator/Fixtures/GroupSequenceProviderEntity.php index 9516c476d3..9b1afefd08 100644 --- a/tests/Symfony/Tests/Component/Validator/Fixtures/GroupSequenceProviderEntity.php +++ b/tests/Symfony/Tests/Component/Validator/Fixtures/GroupSequenceProviderEntity.php @@ -20,7 +20,7 @@ class GroupSequenceProviderEntity implements GroupSequenceProviderInterface $this->groups = $groups; } - public function getValidationGroups() + public function getGroupSequence() { return $this->groups; }