Google\Cloud\Datastore\Transaction::commit PHP Method

commit() public method

Calling this method will end the operation (and close the transaction, if one is specified). Example: $transaction->commit();
public commit ( array $options = [] ) : array
$options array [optional] Configuration Options.
return array [Response Body](https://cloud.google.com/datastore/reference/rest/v1/projects/commit#response-body)
    public function commit(array $options = [])
    {
        $options['transaction'] = $this->transactionId;
        return $this->operation->commit($this->mutations, $options);
    }