PhpOrient\Protocols\Binary\Transaction\TxCommit::commit PHP Method

commit() public method

public commit ( )
    public function commit()
    {
        $this->_transport->inTransaction = false;
        $result = $this->prepare()->send()->getResponse();
        $this->_pre_operation_records = [];
        $this->_operation_stack = [];
        $this->_txId = -1;
        $this->_temp_cluster_position_seq = -2;
        return $result;
    }

Usage Example

 public function commit()
 {
     $this->transaction->commit();
 }