mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
405e725767
commit
b2958dad79
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue