top-think / top-think/think-orm

newQuery没有自动添加delete_time判断

Open
#762 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
437
Forks
188
PR merge metrics
No merged PRs in 30d

Description

版本4.0.29
在实体类里面使用$this->newQuery()进行查询到时候没有自动添加delete_time判断,不知道是不是有问题,还是属于正常现象

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in version 4.0.29 with an entity calling $this->newQuery(), and observe whether the generated query includes a delete_time condition. Then trace the newQuery entry point and the entity’s soft-delete behavior to determine whether the missing condition is expected or a defect. Done means the behavior is clarified and, if it is a defect, covered by a focused regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.