_transaction->getActive()) { $this->_transaction = NULL; } return $this->_transaction; } public function beginTransaction() { if ($this->_transaction && $this->_transaction->getActive()) { $this->_transaction->beginNestedTransaction(); } else { $this->_transaction = parent::beginTransaction(); } return $this->_transaction; } } ?>