public function beginTransaction() { if ($this->_transactionLevel === 0) { parent::beginTransaction(); } $this->_transactionLevel++; return $this; }
function beginTransaction() { $this->_transaction_depth++; if ($this->_transaction_depth > 0) { return; } return parent::beginTransaction(); }
/** * Begin new DB transaction for connection * * @return App_Zend_Db_Adapter_Mysqli */ public function beginTransaction() { if ($this->_txLevel === 0) { //error_log("begin tx for real"); parent::beginTransaction(); } else { //error_log("begin tx " . $this->_txLevel+1); } $this->_txLevel++; return $this; }
/** * Begin new DB transaction for connection * * @return Varien_Db_Adapter_Pdo_Mysql */ public function beginTransaction() { if ($this->_transactionLevel === 0) { $this->_debugTimer(); parent::beginTransaction(); $this->_debugStat(self::DEBUG_TRANSACTION, 'BEGIN'); } ++$this->_transactionLevel; return $this; }
/** * Begin new DB transaction for connection * * @return $this * @throws \Exception */ public function beginTransaction() { if ($this->_isRolledBack) { throw new \Exception(AdapterInterface::ERROR_ROLLBACK_INCOMPLETE_MESSAGE); } if ($this->_transactionLevel === 0) { $this->_debugTimer(); parent::beginTransaction(); $this->_debugStat(self::DEBUG_TRANSACTION, 'BEGIN'); } ++$this->_transactionLevel; return $this; }