在使用mongo扩展修改数据时:提示
Performing an update on the path '_id' would modify the immutable field '_id'错误.
配置文件把_id修改为了id
修改语句为:
$mongo->name('common_amount')->where('id',$id)->update(['status'=>1]);
但是使用下查询语句时正式,没有错误返回:
$mongo->name('common_amount')->where('id',$id)->find();