File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
user_guide_src/source/database Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ transactions.
14
14
15
15
.. contents ::
16
16
:local:
17
- :depth: 2
17
+ :depth: 3
18
18
19
19
CodeIgniter's Approach to Transactions
20
20
======================================
@@ -64,6 +64,21 @@ Strict Mode can be disabled as follows:
64
64
65
65
.. literalinclude :: transactions/002.php
66
66
67
+ .. _transactions-resetting-transaction-status :
68
+
69
+ Resetting Transaction Status
70
+ ----------------------------
71
+
72
+ .. versionadded :: 4.6.0
73
+
74
+ When strict mode is enabled, if one transaction fails, all subsequent transactions
75
+ will be rolled back.
76
+
77
+ If you wan to restart transactions after a failure, you can reset the transaction
78
+ status:
79
+
80
+ .. literalinclude :: transactions/009.php
81
+
67
82
.. _transactions-managing-errors :
68
83
69
84
Managing Errors
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ $ this ->db ->resetTransStatus ();
You can’t perform that action at this time.
0 commit comments