From f32cc3eb798300100eee6275e290047d9def1f25 Mon Sep 17 00:00:00 2001 From: nate Date: Thu, 29 Mar 2007 00:49:53 +0000 Subject: [PATCH] Adding DboSource destructor rollback fix (Ticket #2110) git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4703 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/model/datasources/dbo_source.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cake/libs/model/datasources/dbo_source.php b/cake/libs/model/datasources/dbo_source.php index f7fd157bc..5e2e73b5a 100644 --- a/cake/libs/model/datasources/dbo_source.php +++ b/cake/libs/model/datasources/dbo_source.php @@ -1669,7 +1669,8 @@ class DboSource extends DataSource { */ function __destruct() { if ($this->_transactionStarted) { - $this->rollback(); + $null = null; + $this->rollback($null); } $this->close(); parent::__destruct();