update field getValue
This commit is contained in:
parent
4bebc8d3f2
commit
753f3467cc
|
@ -45,11 +45,9 @@ abstract class Field
|
|||
|
||||
protected function getValue($entity, array $options)
|
||||
{
|
||||
$propertyAccessor = PropertyAccess::createPropertyAccessorBuilder()
|
||||
->getPropertyAccessor()
|
||||
;
|
||||
|
||||
if (null !== $options['property']) {
|
||||
$propertyAccessor = PropertyAccess::createPropertyAccessorBuilder()->getPropertyAccessor();
|
||||
|
||||
$value = $propertyAccessor->getValue($entity, $options['property']);
|
||||
} elseif (null !== $options['property_builder']) {
|
||||
$value = call_user_func($options['property_builder'], $entity, $options);
|
||||
|
|
Loading…
Reference in a new issue