protected function _determineAutoTransaction($model, $start = true) { if ($this->settings[$model->name]['auto']) { if ($start) { return !TransactionManager::started($model->useDbConfig); } else { return !$this->_startedByOther($model); } } return false; }