Exemplo n.º 1
0
 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;
 }