top-think / top-think/think-orm

ThinkORM4有没有办法关闭所有模型字段的自动转换?

Open
#768 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

我知道可以在模型类中设置type成员字段,但是这样只能一个字段一个字段的关闭,我们有十几个项目,几百个模型类,超多字段,在之前都手动转换好了,升级到4.0,有些字段就显示不正常了

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 reviewing ThinkORM 4.0's model field type-conversion behavior and the existing per-field type configuration described in the issue. Determine whether a project-wide or model-wide opt-out is supported or needs to be designed; done means existing manually converted values remain unchanged across the affected models and fields.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.