top-think / think-orm

Think ORM——the PHP Database&ORM Framework
Apache License 2.0
413 stars 171 forks source link

修改模型更新方法,默认关闭全局查询范围限制 #595

Closed Hhh0121 closed 1 month ago

Hhh0121 commented 1 month ago

image 遇到类似的场景,关闭全局查询范围查询数据,然后更新数据,数据没有更新并且没有任何异常报错。查询范围应该只限制查询场景,如果查询出来,更新操作不应该受影响。

codecov-commenter commented 1 month ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 12.25%. Comparing base (e35f497) to head (b221a9c). Report is 33 commits behind head on 3.0.

Files Patch % Lines
src/Model.php 0.00% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## 3.0 #595 +/- ## ============================================ + Coverage 12.24% 12.25% +0.01% - Complexity 2965 2984 +19 ============================================ Files 64 64 Lines 7129 7154 +25 ============================================ + Hits 873 877 +4 - Misses 6256 6277 +21 ``` | [Flag](https://app.codecov.io/gh/top-think/think-orm/pull/595/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=top-think) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/top-think/think-orm/pull/595/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=top-think) | `12.25% <0.00%> (+0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=top-think#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.