DDC-3958: [GH-1537] Use ObjectManager interface to allow for decorated EntityManagers #4840

Closed
opened 2026-01-22 14:50:20 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 21, 2015).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user @doctrinebot:

This issue is created automatically through a Github pull request on behalf of gnat42:

Url: https://github.com/doctrine/doctrine2/pull/1537

Message:

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.

Originally created by @doctrinebot on GitHub (Oct 21, 2015). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user @doctrinebot: This issue is created automatically through a Github pull request on behalf of gnat42: Url: https://github.com/doctrine/doctrine2/pull/1537 Message: 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 Bug label 2026-01-22 14:50:20 +01:00
admin closed this issue 2026-01-22 14:50:21 +01:00
Author
Owner

@doctrinebot commented on GitHub (Oct 21, 2015):

Comment created by gnat:

This isn't against master because it isn't an issue on master. Only affects doctrine < 2.4

@doctrinebot commented on GitHub (Oct 21, 2015): Comment created by gnat: This isn't against master because it isn't an issue on master. Only affects doctrine < 2.4
Author
Owner

@doctrinebot commented on GitHub (Oct 30, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1537] was closed:
https://github.com/doctrine/doctrine2/pull/1537

@doctrinebot commented on GitHub (Oct 30, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1537] was closed: https://github.com/doctrine/doctrine2/pull/1537
Author
Owner

@doctrinebot commented on GitHub (Oct 30, 2015):

Comment created by @doctrinebot:

A related Github Pull-Request [GH-1537] was assigned:
https://github.com/doctrine/doctrine2/pull/1537

@doctrinebot commented on GitHub (Oct 30, 2015): Comment created by @doctrinebot: A related Github Pull-Request [GH-1537] was assigned: https://github.com/doctrine/doctrine2/pull/1537
Author
Owner

@doctrinebot commented on GitHub (Oct 30, 2015):

Issue was closed with resolution "Invalid"

@doctrinebot commented on GitHub (Oct 30, 2015): Issue was closed with resolution "Invalid"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4840