top-think / top-think/think-orm
V2.0.50之后 模型类 查询结果不是Collection类,类似json的数据
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 437
- Forks
- 188
- PR merge metrics
- No merged PRs in 30d
Description
ShopGoodsspecModel::where('goods_type_id','=',‘1’)->order('list_order asc,goods_spec_id asc')->select();
dump后输出类似json的数据,不是原来的think\model\Collection
"[("goods_ spec_ id" :30, "goods_ type id":37)]"
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 reported ShopGoodsspecModel query and inspect the dumped result before and after version 2.0.50. Compare it with the expected think\model\Collection behavior; done when the query again returns the intended Collection rather than JSON-like data.
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
- Mostly clear
- Newbie friendliness
- 35/100