@@ -85,7 +85,8 @@ class Transaction implements TransactionalReadInterface
8585 * @type bool $isRetry Whether the transaction will automatically retry or not.
8686 * @type string $tag A transaction tag. Requests made using this transaction will
8787 * use this as the transaction tag.
88- * @type array $begin The begin Transaction options. See {@see V1\TransactionOptions}.
88+ * @type array $begin The begin Transaction options, for using inline begin transactions.
89+ * See {@see V1\TransactionOptions}.
8990 * @type array $requestOptions See {@see V1\RequestOptions}.
9091 * @type array $transactionOptions See {@see V1\TransactionOptions}.
9192 * }
@@ -412,8 +413,7 @@ public function commit(array $options = []): Timestamp
412413 }
413414
414415 // For commit, A transaction ID is mandatory for non-single-use transactions,
415- // and the `begin` option is not supported.
416- // @TODO: Find out why the `begin` option is not supported for calling the `beginTransaction` RPC
416+ // and the `begin` option is not supported (because `begin` is only used in "inline begin transactions")
417417 if (empty ($ this ->transactionId ) && isset ($ this ->transactionSelector ['begin ' ])) {
418418 $ operationTransactionOptions = [
419419 'requestOptions ' => $ this ->requestOptions ,
@@ -446,6 +446,7 @@ public function commit(array $options = []): Timestamp
446446
447447 $ t = $ this ->transactionOptions ($ options );
448448
449+ // @TODO find out what this is and clean it up
449450 $ options [$ t [1 ]] = $ t [0 ];
450451
451452 $ res = $ this ->operation ->commitWithResponse ($ this ->session , $ this ->pluck ('mutations ' , $ options ), $ options );
0 commit comments