top-think / top-think/think-orm
使用关联查询使用group 时,调用count 查询,设置options时,类型为protected 导致FetchSql 失败报错
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 437
- Forks
- 188
- PR merge metrics
- No merged PRs in 30d
Description

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
The issue provides only a screenshot and describes a related query using group with count, where protected options cause FetchSql to fail. Start by locating the count-query and FetchSql paths in the PHP ORM, then reproduce the associated-query and group scenario shown in the screenshot. Done means the count query's FetchSql call no longer fails when options are protected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100