From f3f72edb455bec9eda2f0aa7d78203bf839e2d4d Mon Sep 17 00:00:00 2001 From: beberlei Date: Sat, 13 Mar 2010 09:19:12 +0000 Subject: [PATCH] [2.0] Give public access to the computed collection deletions and updates for possible use with the onFlush event. --- lib/Doctrine/ORM/UnitOfWork.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lib/Doctrine/ORM/UnitOfWork.php b/lib/Doctrine/ORM/UnitOfWork.php index 71733b15d..93ce6f56b 100644 --- a/lib/Doctrine/ORM/UnitOfWork.php +++ b/lib/Doctrine/ORM/UnitOfWork.php @@ -2103,4 +2103,24 @@ class UnitOfWork implements PropertyChangedListener { return $this->_entityDeletions; } + + /** + * Get the currently scheduled complete collection deletions + * + * @return array + */ + public function getScheduledCollectionDeletions() + { + return $this->_collectionDeletions; + } + + /** + * Gets the currently scheduled collection inserts, updates and deletes. + * + * @return array + */ + public function getScheduledCollectionUpdates() + { + return $this->_collectionUpdates; + } }