thinkphp5.1,模型更新的问题

浏览:1493 发布日期:2018/03/31 分类:ThinkPHP5专区 关键字: 模型更新
//Db::name('admin')->where('id',$id)->update(['work'=>3]);

$admin = AdminModel::get($id);
$admin->work = 3;
$admin->save();

模型更新时提示

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in E:\php\WWW\fuyou\thinkphp\library\think\Model.php on line 114

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0

允许的内存大小为134217728字节耗尽(试图分配262144字节)
不用模型更新就没事
模型添加也没事
最佳答案
评论( 相关
后面还有条评论,点击查看>>