Skip to content

Commit

Permalink
修改模型更新方法,默认关闭全局查询范围限制
Browse files Browse the repository at this point in the history
  • Loading branch information
Hhh0121 authored and liu21st committed Jul 29, 2024
1 parent 17005c9 commit 3ed9e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ protected function updateData(): bool
}

// 模型更新
$db = $this->db();
$db = $this->db(null);

$db->transaction(function () use ($data, $allowFields, $db) {
$this->key = null;
Expand Down

0 comments on commit 3ed9e29

Please sign in to comment.