diff --git a/Form/Doctrine/ChoiceList/AjaxEntityChoiceList.php b/Form/Doctrine/ChoiceList/AjaxEntityChoiceList.php index c061540f..2e0ec2e2 100644 --- a/Form/Doctrine/ChoiceList/AjaxEntityChoiceList.php +++ b/Form/Doctrine/ChoiceList/AjaxEntityChoiceList.php @@ -126,7 +126,7 @@ public function getIntersect(array $ids) $id = current($this->classMetadata->getIdentifierValues($entity)); if ($this->propertyPath) { - $label = PropertyAccess::getPropertyAccessor()->getValue($entity, $this->propertyPath); + $label = PropertyAccess::createPropertyAccessor()->getValue($entity, $this->propertyPath); } else { $label = (string) $entity; }