Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ffacc6b

Browse files
mongodb-php-botnorareidy
andauthored
DOCSP-41010: Fix transactions code example (#3016) (#3020)
Co-authored-by: Nora Reidy <nora.reidy@mongodb.com>
1 parent 8333880 commit ffacc6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎docs/transactions.txt‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,16 @@ to another account:
9999
:start-after: begin transaction callback
100100
:end-before: end transaction callback
101101

102-
You can optionally pass the maximum number of times to retry a failed transaction as the second parameter as shown in the following code example:
102+
You can optionally pass the maximum number of times to retry a failed transaction
103+
as the second parameter, as shown in the following code example:
103104

104105
.. code-block:: php
105106
:emphasize-lines: 4
106107

107108
DB::transaction(function() {
108109
// transaction code
109110
},
110-
retries: 5,
111+
attempts: 5,
111112
);
112113

113114
.. _laravel-transaction-commit:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /