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

Closed
opened 2026-01-22 14:08:23 +01:00 by admin · 2 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:23 +01:00
admin closed this issue 2026-01-22 14:08:23 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 15, 2013):

Comment created by @beberlei:

onFlush and postFlush should be propagated to entity listeners as well

@doctrinebot commented on GitHub (Mar 15, 2013): Comment created by @beberlei: onFlush and postFlush should be propagated to entity listeners as well
Author
Owner

@malukenho commented on GitHub (Jan 5, 2017):

@Ocramius @lcobucci can be closed as it's not a valid issue anymore.

@malukenho commented on GitHub (Jan 5, 2017): @Ocramius @lcobucci can be closed as it's not a valid issue anymore.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2955