0
点赞
收藏
分享

微信扫一扫

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

祈澈菇凉 2022-08-22 阅读 70


截图:

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

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

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

}

 

举报

相关推荐

0 条评论