[Validator] The current class isn't set in execution context when doing validateProperty()

This commit is contained in:
meze 2011-11-13 03:25:35 +04:00 committed by Fabien Potencier
parent 48b084eb85
commit 03ed770d35

View File

@ -129,6 +129,7 @@ class GraphWalker
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) {