祈澈菇凉

关注

Thinkphp5遇到Call to a member function toArray() on null

祈澈菇凉

关注

阅读 70

2022-08-22


截图:

Thinkphp5遇到Call to a member function toArray() on null_编程

在model里面添加 protected $resultSetType = 'collection';

class Kemu extends Model 
{
protected $resultSetType = 'collection';

}

 

相关推荐

半秋L

thinkphp5报错 Call to a member function toArray() on array

半秋L 75 0 0

林肯公园_97cc

thinkphp报错Call to a member function assign() on null

林肯公园_97cc 130 0 0

查拉图斯特拉你和他

Call to a member function fetch() on null

查拉图斯特拉你和他 113 0 0

Ewall_熊猫

tp6 模型 Call to a member function allowField() on null

Ewall_熊猫 80 0 0

茗越

thinkphp5 数据库 get thinkphp collection($row)->toArray() 为什么多了*

茗越 60 0 0

Go_Viola

GatewayWorker thinkphp5

Go_Viola 147 0 0

云朵里的佛光

thinkphp5 input坑

云朵里的佛光 89 0 0

禾木瞎写

THINKPHP5 事务操作

禾木瞎写 166 0 0

elvinyang

thinkphp5上传文件

elvinyang 80 0 0

无聊到学习

thinkphp5 用法总结

无聊到学习 80 0 0

精彩评论(0)

0 0 举报