private function commit()
    {
        if ($this->inTransaction) {
            try {
                // commit read-write transaction which also releases the lock
                if ('sqlite' === $this->driver) {
                    $this->pdo->exec('COMMIT');
                } else {
                    $this->pdo->commit();
                }
                $this->inTransaction = false;
            } catch (\PDOException $e) {
                $this->rollback();

                throw $e;
            }
        }
    }
private function commit()
    {
        if ($this->inTransaction) {
            try {
                // commit read-write transaction which also releases the lock
                if ('sqlite' === $this->driver) {
                    $this->pdo->exec('COMMIT');
                } else {
                    $this->pdo->commit();
                }
                $this->inTransaction = false;
            } catch (\PDOException $e) {
                $this->rollback();

                throw $e;
            }
        }
    }
private function commit ( ) { if ( $ this -> inTransaction ) { try { // commit read-write transaction which also releases the lock if ( 'sqlite' === $ this -> driver ) { $ this -> pdo -> exec ( 'COMMIT' ) ; } else { $ this -> pdo -> commit ( ) ; } $ this -> inTransaction = false ; } catch ( \ PDOException $ e ) { $ this -> rollback ( ) ; throw $ e ; } } }
Helper method to commit a transaction.
Helper method to commit a transaction .