[PR #1537] Use ObjectManager interface to allow for decorated EntityManagers #9593

Open
opened 2026-01-22 16:04:47 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/1537

State: closed
Merged: No


We decorate the EntityManager. When doing so the symfony console command doctrine:generate:form or generate:doctrine:form complain of being passed an object of the wrong type.
With this change the form is properly generated without issue.

I should note this isn't an issue in doctrine 2.4+ since the EntityManagerInterface is type hinted instead.

**Original Pull Request:** https://github.com/doctrine/orm/pull/1537 **State:** closed **Merged:** No --- We decorate the EntityManager. When doing so the symfony console command doctrine:generate:form or generate:doctrine:form complain of being passed an object of the wrong type. With this change the form is properly generated without issue. I should note this isn't an issue in doctrine 2.4+ since the EntityManagerInterface is type hinted instead.
admin added the pull-request label 2026-01-22 16:04:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#9593