Differences for flush ObjectManager <-> vs. EntityManager #4939

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

Originally created by @firegate666 on GitHub (Dec 17, 2015).

Originally assigned to: @Majkl578 on GitHub.

Hi,

is there a reason why flush() for EntityManager accepts an entity and ObjectManager does not? Would it make sense to add this altered method signature at least to the EntityManagerInterface?

Even the EntityManagerDecorator complains about the signature change (method called with 1 parameter, but 0 expected).

Originally created by @firegate666 on GitHub (Dec 17, 2015). Originally assigned to: @Majkl578 on GitHub. Hi, is there a reason why `flush()` for `EntityManager` accepts an entity and `ObjectManager` does not? Would it make sense to add this altered method signature at least to the `EntityManagerInterface`? Even the `EntityManagerDecorator` complains about the signature change (method called with 1 parameter, but 0 expected).
admin added the Improvement label 2026-01-22 14:53:16 +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#4939