Author: jwage
Date: 2008-09-26 18:39:05 +0100 (Fri, 26 Sep 2008)
New Revision: 4988
Modified:
branches/1.0/lib/Doctrine/Connection/UnitOfWork.php
Log:
[1.0] fixes #1456 Making postDelete() run inside transaction
Modified: branches/1.0/lib/Doctrine/Connection/UnitOfWork.php
===================================================================
--- branches/1.0/lib/Doctrine/Connection/UnitOfWork.php 2008-09-26 00:00:24 UTC
(rev 4987)
+++ branches/1.0/lib/Doctrine/Connection/UnitOfWork.php 2008-09-26 17:39:05 UTC
(rev 4988)
@@ -275,12 +275,13 @@
}
}
- $this->conn->commit();
// trigger postDelete for records skipped during the deletion
(veto!)
foreach ($deletions as $skippedRecord) {
$this->_postDelete($skippedRecord);
}
+ $this->conn->commit();
+
return true;
} catch (Exception $e) {
$this->conn->rollback();
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---