We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54507dc commit 2381f51Copy full SHA for 2381f51
2 files changed
tests/system/Database/Live/TransactionCallbacksTest.php
@@ -23,11 +23,9 @@
23
24
/**
25
* @internal
26
- *
27
- * @no-final
28
*/
29
#[Group('DatabaseLive')]
30
-class TransactionCallbacksTest extends CIUnitTestCase
+final class TransactionCallbacksTest extends CIUnitTestCase
31
{
32
use DatabaseTestTrait;
33
user_guide_src/source/database/transactions/011.php
@@ -1,5 +1,9 @@
1
<?php
2
3
$this->db->afterCommit(static function (): void {
4
- // Runs immediately because there is no active transaction.
+ // Runs immediately because no transaction has started yet.
5
});
6
+
7
+$this->db->transStart();
8
+$this->db->query('AN SQL QUERY...');
9
+$this->db->transComplete();
0 commit comments