Skip to content

Commit

Permalink
This commit ensures that the "property_path" option is respected in t…
Browse files Browse the repository at this point in the history
…he DoctrineORM manipulator. If no property_path is specified, the form name is used as before. (#43)

Co-authored-by: Samuel Breu <samuel.breu@breu.cloud>
  • Loading branch information
bresam and Samuel Breu authored Jan 9, 2024
1 parent 20c2e48 commit 0c2f541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/Manipulator/DoctrineORMManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,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');
Expand Down

0 comments on commit 0c2f541

Please sign in to comment.