From b019bc2a12f5592de74a42ffdf83c538678247d4 Mon Sep 17 00:00:00 2001 From: Samuel Breu Date: Thu, 4 Jan 2024 17:23:53 +0100 Subject: [PATCH] This commit ensures that the "property_path" option is respected in the DoctrineORM manipulator. If no property_path is specified, the form name is used as before. --- src/Form/Manipulator/DoctrineORMManipulator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/Manipulator/DoctrineORMManipulator.php b/src/Form/Manipulator/DoctrineORMManipulator.php index 2554fd8..8cea9cc 100644 --- a/src/Form/Manipulator/DoctrineORMManipulator.php +++ b/src/Form/Manipulator/DoctrineORMManipulator.php @@ -85,7 +85,7 @@ private function getDataClass(FormInterface $form): string continue; } - return $this->doctrineORMInfo->getAssociationTargetClass($dataClass, $form->getName()); + return $this->doctrineORMInfo->getAssociationTargetClass($dataClass, (string) $form->getPropertyPath()); } throw new \RuntimeException('Unable to get dataClass');