ThinkPHP组件版本:topthink/think-orm v2.0.27
数据库配置:
database.php配置fields_strict=>true
模型定义:
如果模型定义了$jsonType,还必须定义$schema
原因:
见框架源码
1、vendor/topthink/think-orm/src/db/Builder.php
2、vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php
3、vendor/topthink/think-orm/src/Model.php
4、vendor/topthink/think-orm/src/db/BaseQuery.php