@@ -24,8 +24,8 @@ In this guide, you can learn how to perform a **transaction** in MongoDB by
2424using {+odm-long+}. Transactions let you run a sequence of write operations
2525that update the data only after the transaction is committed.
2626
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
2929the transaction before they become visible. This property of transactions
3030that ensures that all changes within a transaction are either applied or
3131discarded is called **atomicity**.
@@ -74,15 +74,20 @@ MongoDB Server and the {+odm-short+} have the following limitations:
7474 you perform write operations in a transaction. To learn more about this
7575 limitation, see :manual:`Create Collections and Indexes in a Transaction </core/transactions/#create-collections-and-indexes-in-a-transaction>`
7676 in the {+server-docs-name+}.
77+ 7778- MongoDB does not support nested transactions. If you attempt to start a
7879 transaction within another one, the extension raises a ``RuntimeException``.
7980 To learn more about this limitation, see :manual:`Transactions and Sessions </core/transactions/#transactions-and-sessions>`
8081 in the {+server-docs-name+}.
82+ 8183- {+odm-long+} does not support the database testing traits
8284 ``Illuminate\Foundation\Testing\DatabaseTransactions`` and ``Illuminate\Foundation\Testing\RefreshDatabase``.
8385 As a workaround, you can create migrations with the ``Illuminate\Foundation\Testing\DatabaseMigrations``
8486 trait to reset the database after each test.
8587
88+ - {+odm-long+} does not support running parallel operations within a
89+ single transaction.
90+ 8691.. _laravel-transaction-callback:
8792
8893Run a Transaction in a Callback
0 commit comments