public function commit()
    {
        try {
            $this->storeAllTables();

            $this->snapshot = [];
        } catch (\Exception $e) {
            throw new \RuntimeException('Commit failed: ' . $e->getMessage(), 0, $e);
        }
    }
public function commit()
    {
        try {
            $this->storeAllTables();

            $this->snapshot = [];
        } catch (\Exception $e) {
            throw new \RuntimeException('Commit failed: ' . $e->getMessage(), 0, $e);
        }
    }
public function commit ( ) { try { $ this -> storeAllTables ( ) ; $ this -> snapshot = [ ] ; } catch ( \ Exception $ e ) { throw new \ RuntimeException ( 'Commit failed: ' . $ e -> getMessage ( ) , 0 , $ e ) ; } }
Commit all changes

@return  void
@throws  \RuntimeException  on failure
Commit all changes