From b2958dad79926f46c366a28ce5e4d31028a1d782 Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 1 Apr 2015 20:37:06 -0400 Subject: [PATCH] Re-add call to parent destructor. In 762ebd4 a destructor was added to DboSource, this accidentally removed the rollback on destruct that Datasource provides. Restoring this via a parent call allows pending transactions to be rolled back at the end of a request. Fixes #6251 --- lib/Cake/Model/Datasource/DboSource.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Cake/Model/Datasource/DboSource.php b/lib/Cake/Model/Datasource/DboSource.php index b94d9eb6c..80c351202 100644 --- a/lib/Cake/Model/Datasource/DboSource.php +++ b/lib/Cake/Model/Datasource/DboSource.php @@ -3563,6 +3563,7 @@ class DboSource extends DataSource { if ($this->_methodCacheChange) { Cache::write('method_cache', self::$methodCache, '_cake_core_'); } + parent::__destruct(); } }