public function rollback() { if ($this->_active && $this->_connection->getActive()) { $this->_connection->getPdoInstance()->rollBack(); $this->_active = false; } else { throw new TDbException('dbtransaction_transaction_inactive'); } }