/** * Decrease transaction counter and issue rollback. * * @return bool True */ protected function _rollback() { if ($this->_runningTransactions < 2) { // Check for values < 2 to not mask errors on misuse of rollback() parent::_rollback(); } $this->_runningTransactions--; return true; }