This commit is contained in:
as2252258@163.com
2021-08-09 02:53:49 +08:00
parent b7ab941d98
commit b486686474
+4
View File
@@ -90,6 +90,10 @@ class Connection extends Component
$this->eventProvider->on(Rollback::class, [$this, 'rollback'], 0);
$this->eventProvider->on(Commit::class, [$this, 'commit'], 0);
if (Db::transactionsActive()) {
$this->beginTransaction();
}
$this->_schema->db = $this;
}