merged branch jankramer/property-path-setter-fix (PR #6696)
This PR was merged into the master branch.
Commits
-------
69535cf
Fixed broken setter in Form/Util/PropertyPath
Discussion
----------
[Form] Fixed broken setter in Form/Util/PropertyPath
Bug fix: [yes]
Feature addition: [no]
Backwards compatibility break: [no]
Symfony2 tests pass: [yes
Fixes the following tickets:
Todo:
License of the code: MIT
Documentation PR:
---------------------------------------------------------------------------
by bschussek at 2013-01-11T06:54:15Z
+1
This commit is contained in:
commit
b3abf45ae9
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user