webman2.0 + think-orm,查出来的每个数据(每个字段的每个数据),在toArray或者转json的时候,都会被Composer里面的ClassLoader当成类去加载
在数据库查出数据后,调用json或者toArray,就会把每个查出的字段值都当成类去加载
这里写具体的系统环境相关信息 webman2.1,thinkorm2.1,win10,php8.2zts
可能是thinkphp官方 topthink/think-orm v4的缺陷,已经反馈给tp官方。 先手动执行composer require topthink/think-orm ~3.0 降级下
topthink/think-orm
composer require topthink/think-orm ~3.0
好的,谢谢大佬!
tp官方已经修复了,执行composer require topthink/think-orm ^4.0.30 升级下。
composer require topthink/think-orm ^4.0.30
think-orm4建议不要用,才刚开始就出现不兼容,后期大概率会不以前的版本兼容,等他稳定了再说。 在composer.json中指定版本限制一下: "topthink/think-orm": "^3.0.0"
"topthink/think-orm": "^3.0.0"
最好还是用lv的orm 稳定 安全
可能是thinkphp官方
topthink/think-orm
v4的缺陷,已经反馈给tp官方。先手动执行
composer require topthink/think-orm ~3.0
降级下好的,谢谢大佬!
tp官方已经修复了,执行
composer require topthink/think-orm ^4.0.30
升级下。好的,谢谢大佬!
think-orm4建议不要用,才刚开始就出现不兼容,后期大概率会不以前的版本兼容,等他稳定了再说。
在composer.json中指定版本限制一下:
"topthink/think-orm": "^3.0.0"
最好还是用lv的orm 稳定 安全