top-think / top-think/think-orm
字段名中带#如何进行查询呢?
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 437
- Forks
- 188
- PR merge metrics
- No merged PRs in 30d
Description
$where[] = ['#event_name', '=', $eventName];
$list = $this->event->where($where)->select();
最终报错 "not support data:#event_name"
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
Reproduce the shown $this->event->where($where)->select() query with the #event_name field and confirm the "not support data:#event_name" error. Trace how the field name is handled by where() and identify the validation or parsing entry point responsible; done means the supported behavior for querying this field is defined and covered by a regression test.
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
- 30/100