top-think / top-think/think-orm
远程一对多hasWhere查询问题
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 437
- Forks
- 188
- PR merge metrics
- No merged PRs in 30d
Description
hasWhere查询始终会对关联模型表加表前缀,即使关联模型定义了不带表前缀的$table属性也一样
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the hasWhere query path and how the related model's $table setting is applied for remote one-to-many relations. Reproduce the query with a related model whose table name has no prefix, then confirm that the generated query respects that setting without breaking normal table qualification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100