diff --git a/src/Oro/Bundle/NotificationBundle/Provider/AdditionalEmailAssociationProvider.php b/src/Oro/Bundle/NotificationBundle/Provider/AdditionalEmailAssociationProvider.php index 0a161bc7a23..19889cf6040 100644 --- a/src/Oro/Bundle/NotificationBundle/Provider/AdditionalEmailAssociationProvider.php +++ b/src/Oro/Bundle/NotificationBundle/Provider/AdditionalEmailAssociationProvider.php @@ -70,8 +70,11 @@ public function isAssociationSupported($entity, string $associationName): bool */ public function getAssociationValue($entity, string $associationName) { - return $this->getEntityMetadata(ClassUtils::getClass($entity)) - ->getFieldValue($entity, $associationName); + $propertyAccessor = new PropertyAccessor(); + + return $propertyAccessor->isReadable($entity, $associationName) + ? $propertyAccessor->getValue($entity, $associationName) + : null; } /**