think-orm icon indicating copy to clipboard operation
think-orm copied to clipboard

saveAll新增返回不带自己id了???之前都带的,更新一下orm就没有

Open jsasg opened this issue 11 months ago • 5 comments

Image

jsasg avatar May 30 '25 03:05 jsasg

描述错误,是新版中saveAll新增时返回中自带的id全成了0

jsasg avatar May 30 '25 03:05 jsasg

是最新版嘛,参考下这个,看看是否能解决你的问题https://github.com/top-think/think-orm/issues/780

big-dream avatar May 30 '25 03:05 big-dream

版本是v4.0.41

jsasg avatar May 30 '25 03:05 jsasg

有没有定义scheme,有的话,可以尝试去掉试试

big-dream avatar May 30 '25 03:05 big-dream

确实是scheme问题,删除掉就可以了,貌似我的所有model都有定义scheme,只能考滤回退版本了

jsasg avatar May 30 '25 03:05 jsasg