File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
user_guide_src/source/database Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,16 @@ Strict Mode can be disabled as follows:
61
61
Managing Errors
62
62
===============
63
63
64
- If you have error reporting enabled in your Config/Database.php file
65
- you'll see a standard error message if the commit was unsuccessful. If
66
- debugging is turned off , you can manage your own errors like this:
64
+ If you have `` DBDebug `` true in your ** app/ Config/Database.php** file
65
+ you'll see an exception thrown if the commit was unsuccessful. If
66
+ `` DBDebug `` is false , you can manage your own errors like this:
67
67
68
68
.. literalinclude :: transactions/003.php
69
69
70
+ .. note :: Since v4.3.0, ``DBDebug`` is true by default. In previous versions,
71
+ it was false in production environment, and different database drivers might
72
+ throw different exception classes or did not throw exceptions.
73
+
70
74
Disabling Transactions
71
75
======================
72
76
You can’t perform that action at this time.
0 commit comments