You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 30, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: en/reference/transactions.rst
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ is functionally equivalent to the previous one:
36
36
The ``Doctrine\DBAL\Connection`` also has methods to control the
37
37
transaction isolation level as supported by the underlying
38
38
database. ``Connection#setTransactionIsolation($level)`` and
39
-
Connection#getTransactionIsolation() can be used for that purpose.
39
+
``Connection#getTransactionIsolation()`` can be used for that purpose.
40
40
The possible isolation levels are represented by the following
41
41
constants:
42
42
@@ -60,9 +60,9 @@ transactions, or rather propagating transaction control up the call
60
60
stack. For that purpose, the ``Connection`` class keeps an internal
61
61
counter that represents the nesting level and is
62
62
increased/decreased as ``beginTransaction()``, ``commit()`` and
63
-
``rollback()`` are invoked. ``beginTransaction()`` increases the
63
+
``rollback()`` are invoked. ``beginTransaction()`` increases the
64
64
nesting level whilst
65
-
``commit()`` and``rollback()``decrease the nesting level. The nesting level starts at 0. Whenever the nesting level transitions from 0 to 1,``beginTransaction()``is invoked on the underlying driver connection and whenever the nesting level transitions from 1 to 0,``commit()``or``rollback()``is invoked on the underlying driver, depending on whether the transition was caused by``Connection#commit()``or``Connection#rollback()\`.
65
+
``commit()`` and``rollback()``decrease the nesting level. The nesting level starts at 0. Whenever the nesting level transitions from 0 to 1,``beginTransaction()``is invoked on the underlying driver connection and whenever the nesting level transitions from 1 to 0,``commit()`` or ``rollback()``is invoked on the underlying driver, depending on whether the transition was caused by``Connection#commit()`` or ``Connection#rollback()``.
66
66
67
67
What this means is that transaction control is basically passed to
68
68
code higher up in the call stack and the inner transaction block is
@@ -127,7 +127,7 @@ wider scope and the control is handed to the outer scope.
127
127
.. note::
128
128
129
129
The transaction nesting described here is a debated
130
-
feature that has it's critics. Form your own opinion. We recommend
130
+
feature that has its critics. Form your own opinion. We recommend
131
131
avoiding nesting transaction blocks when possible, and most of the
132
132
time, it is possible. Transaction control should mostly be left to
133
133
a service layer and not be handled in data access objects or
@@ -138,7 +138,7 @@ wider scope and the control is handed to the outer scope.
138
138
Directly invoking ``PDO#beginTransaction()``,
139
139
``PDO#commit()`` or ``PDO#rollback()`` or the corresponding methods
140
140
on the particular ``Doctrine\DBAL\Driver\Connection`` instance in
141
-
use bybasses the transparent transaction nesting that is provided
141
+
use bypasses the transparent transaction nesting that is provided
142
142
by ``Doctrine\DBAL\Connection`` and can therefore corrupt the
143
143
nesting level, causing errors with broken transaction boundaries
0 commit comments