mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #40] [MERGED] DDC-696: onClear event #7628
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
master← Head:DDC-696📝 Commits (3)
1f50deeDDC-696: Added onClear event17cbb34Clean up of test case706cc83Removed svn variable📊 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.