@@ -24,8 +24,8 @@ In this guide, you can learn how to perform a **transaction** in MongoDB by
24
24
using {+odm-long+}. Transactions let you run a sequence of write operations
25
25
that update the data only after the transaction is committed.
26
26
27
- If the transaction fails, the {+php-library+} that manages MongoDB operations
28
- for the {+odm-short+} ensures that MongoDB discards all the changes made within
27
+ If the transaction fails, the {+php-library+}, which manages MongoDB operations
28
+ for the {+odm-short+}, ensures that MongoDB discards all the changes made within
29
29
the transaction before they become visible. This property of transactions
30
30
that ensures that all changes within a transaction are either applied or
31
31
discarded is called **atomicity**.
@@ -74,15 +74,20 @@ MongoDB Server and the {+odm-short+} have the following limitations:
74
74
you perform write operations in a transaction. To learn more about this
75
75
limitation, see :manual:`Create Collections and Indexes in a Transaction </core/transactions/#create-collections-and-indexes-in-a-transaction>`
76
76
in the {+server-docs-name+}.
77
+
77
78
- MongoDB does not support nested transactions. If you attempt to start a
78
79
transaction within another one, the extension raises a ``RuntimeException``.
79
80
To learn more about this limitation, see :manual:`Transactions and Sessions </core/transactions/#transactions-and-sessions>`
80
81
in the {+server-docs-name+}.
82
+
81
83
- {+odm-long+} does not support the database testing traits
82
84
``Illuminate\Foundation\Testing\DatabaseTransactions`` and ``Illuminate\Foundation\Testing\RefreshDatabase``.
83
85
As a workaround, you can create migrations with the ``Illuminate\Foundation\Testing\DatabaseMigrations``
84
86
trait to reset the database after each test.
85
87
88
+ - {+odm-long+} does not support running parallel operations within a
89
+ single transaction.
90
+
86
91
.. _laravel-transaction-callback:
87
92
88
93
Run a Transaction in a Callback
0 commit comments