Permalink
Browse files

[Validator] The current class isn't set in execution context when doi…

…ng validateProperty()
  • Loading branch information...
1 parent 17b2957 commit f77e3653006ac88260a4b13a21e9be652fe201e1 @meze meze committed with fabpot Nov 12, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 GraphWalker.php
View
@@ -129,6 +129,7 @@ public function walkPropertyValue(ClassMetadata $metadata, $property, $value, $g
protected function walkMember(MemberMetadata $metadata, $value, $group, $propertyPath, $propagatedGroup = null)
{
+ $this->context->setCurrentClass($metadata->getClassName());
$this->context->setCurrentProperty($metadata->getPropertyName());
foreach ($metadata->findConstraints($group) as $constraint) {

0 comments on commit f77e365

Please sign in to comment.