isabellebruchet
isabellebruchet
Just have to replace : $propertyPath = new PropertyPath($this->property); return $propertyPath->getValue($data); By : $propertyAccessor = new PropertyAccessor(); return $propertyAccessor->getValue($data, $this->property); And change the use statement : use Symfony\Component\PropertyAccess\PropertyAccessor;
Apparently these new files exist since version 2.2, however, the code I posted above works, but it is not exactly the right way. PropertyAccessor should not be accessed directly but...
Right way : https://github.com/isabellebruchet/FormBundle/commit/d4ab0260c2e94b9ba2de03dd20f7e6e330b8dc85