top-think / top-think/think-orm

V2.0.50之后 模型类 查询结果不是Collection类,类似json的数据

Open
#329 2 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

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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.