mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #1537] Use ObjectManager interface to allow for decorated EntityManagers #9593
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.