top-think / top-think/think-orm

orm4.0.45, ->value('json_value', []) ,不走json解析

Open
#788 1 comment 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

->value('json_value', []) 是字符串
->field('json_value')->find() 可以正常格式化

是特意这么做,还是?

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

Start by reproducing the reported difference between ->value('json_value', []) and ->field('json_value')->find() in the ORM's value and field query paths. Trace how each path handles JSON fields and determine the intended behavior before checking whether an existing test covers both calls.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.