[PR #40] [MERGED] DDC-696: onClear event #7628

Closed
opened 2026-01-22 15:56:03 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/40
Author: @mridgway
Created: 3/22/2011
Status: Merged
Merged: 3/29/2011
Merged by: @beberlei

Base: masterHead: DDC-696


📝 Commits (3)

📊 Changes

5 files changed (+107 additions, -0 deletions)

View changed files

lib/Doctrine/ORM/Event/OnClearEventArgs.php (+54 -0)
📝 lib/Doctrine/ORM/Events.php (+8 -0)
📝 lib/Doctrine/ORM/UnitOfWork.php (+4 -0)
📝 tests/Doctrine/Tests/ORM/Functional/AllTests.php (+1 -0)
tests/Doctrine/Tests/ORM/Functional/ClearEventTest.php (+40 -0)

📄 Description

Added an onClear event that is called at the end of UnitOfWork::clear(). I wasn't sure if it should be called at the beginning or end of the clear() so I made an assumption. The unit test is extremely simple as I don't have a good use case for this off the top of my head.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/40 **Author:** [@mridgway](https://github.com/mridgway) **Created:** 3/22/2011 **Status:** ✅ Merged **Merged:** 3/29/2011 **Merged by:** [@beberlei](https://github.com/beberlei) **Base:** `master` ← **Head:** `DDC-696` --- ### 📝 Commits (3) - [`1f50dee`](https://github.com/doctrine/orm/commit/1f50dee8a84e8493f58fbb30052709e082455cce) DDC-696: Added onClear event - [`17cbb34`](https://github.com/doctrine/orm/commit/17cbb349523295a1c0879809a0a266b9075b7f56) Clean up of test case - [`706cc83`](https://github.com/doctrine/orm/commit/706cc838e51a5f3583600ec58ed80229b17d3c21) Removed svn variable ### 📊 Changes **5 files changed** (+107 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `lib/Doctrine/ORM/Event/OnClearEventArgs.php` (+54 -0) 📝 `lib/Doctrine/ORM/Events.php` (+8 -0) 📝 `lib/Doctrine/ORM/UnitOfWork.php` (+4 -0) 📝 `tests/Doctrine/Tests/ORM/Functional/AllTests.php` (+1 -0) ➕ `tests/Doctrine/Tests/ORM/Functional/ClearEventTest.php` (+40 -0) </details> ### 📄 Description Added an onClear event that is called at the end of UnitOfWork::clear(). I wasn't sure if it should be called at the beginning or end of the clear() so I made an assumption. The unit test is extremely simple as I don't have a good use case for this off the top of my head. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 15:56:03 +01:00
admin closed this issue 2026-01-22 15:56:03 +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#7628