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
This commit is contained in:
mark_story 2015-04-01 20:37:06 -04:00
parent 405e725767
commit b2958dad79

View file

@ -3563,6 +3563,7 @@ class DboSource extends DataSource {
if ($this->_methodCacheChange) { if ($this->_methodCacheChange) {
Cache::write('method_cache', self::$methodCache, '_cake_core_'); Cache::write('method_cache', self::$methodCache, '_cake_core_');
} }
parent::__destruct();
} }
} }