DDC-2351: Entity Listener vs. Event Listener #2952

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

Originally created by @doctrinebot on GitHub (Mar 15, 2013).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user fspillner:

Entity Listener and Event Listener don't get same events. An example is the onFlush event, which Entity Listener doesn't get. Why are both listeners receiving different events and not same events?

For consistency I'd like to see that both get same events - if I understand the purpose of Entity Listener correctly: it should be an alternative to Event Listener with same functionality but is bound to an entity.

Originally created by @doctrinebot on GitHub (Mar 15, 2013). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user fspillner: Entity Listener and Event Listener don't get same events. An example is the onFlush event, which Entity Listener doesn't get. Why are both listeners receiving different events and not same events? For consistency I'd like to see that both get same events - if I understand the purpose of Entity Listener correctly: it should be an alternative to Event Listener with same functionality but is bound to an entity.
admin added the ImprovementInvalid labels 2026-01-22 14:08:19 +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#2952