DDC-696: Add onClear Event #857

Closed
opened 2026-01-22 12:52:54 +01:00 by admin · 5 comments
Owner

Originally created by @doctrinebot on GitHub (Jul 19, 2010).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

There should be an event "onClear" that is called whenever someone calls "EntityManager::clear()".

This may be necessary in certain long-running script scenarios when you have additional identity maps / caching, for example based on unique fields of an entity.

Originally created by @doctrinebot on GitHub (Jul 19, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: There should be an event "onClear" that is called whenever someone calls "EntityManager::clear()". This may be necessary in certain long-running script scenarios when you have additional identity maps / caching, for example based on unique fields of an entity.
admin added the Improvement label 2026-01-22 12:52:54 +01:00
admin closed this issue 2026-01-22 12:52:55 +01:00
Author
Owner

@doctrinebot commented on GitHub (Aug 7, 2010):

Comment created by romanb:

Sounds like a new feature that is not urgent. Can we move that post 2.0?

@doctrinebot commented on GitHub (Aug 7, 2010): Comment created by romanb: Sounds like a new feature that is not urgent. Can we move that post 2.0?
Author
Owner

@doctrinebot commented on GitHub (Aug 8, 2010):

Comment created by romanb:

Moving to 2.1.

@doctrinebot commented on GitHub (Aug 8, 2010): Comment created by romanb: Moving to 2.1.
Author
Owner

@doctrinebot commented on GitHub (Mar 24, 2011):

Comment created by mridgway:

I posted a patch for this to Github at https://github.com/doctrine/doctrine2/pull/40

(I'm just making sure that this is logged to JIRA)

@doctrinebot commented on GitHub (Mar 24, 2011): Comment created by mridgway: I posted a patch for this to Github at https://github.com/doctrine/doctrine2/pull/40 (I'm just making sure that this is logged to JIRA)
Author
Owner

@doctrinebot commented on GitHub (Mar 29, 2011):

Comment created by @beberlei:

Merged mridgways branch, thank you!

@doctrinebot commented on GitHub (Mar 29, 2011): Comment created by @beberlei: Merged mridgways branch, thank you!
Author
Owner

@doctrinebot commented on GitHub (Mar 29, 2011):

Issue was closed with resolution "Fixed"

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

No dependencies set.

Reference: doctrine/archived-orm#857