Fixed broken setter in Form/Util/PropertyPath

This commit is contained in:
Jan Kramer 2013-01-11 07:43:26 +01:00
parent 0acefc9a81
commit 69535cfe42

View File

@ -48,10 +48,10 @@ class PropertyPath extends BasePropertyPath
/**
* Alias for {@link PropertyAccessor::setValue()}
*/
public function setValue($objectOrArray, $value)
public function setValue(&$objectOrArray, $value)
{
$propertyAccessor = PropertyAccess::getPropertyAccessor();
return $propertyAccessor->getValue($objectOrArray, $this, $value);
return $propertyAccessor->setValue($objectOrArray, $this, $value);
}
}