Closed jesuer closed 2 weeks ago
3.0.14 升级到3.0.24后
删除使用:User::scope('user')->scope('age',10)->delete(); 出现错误:delete without condition
User::scope('user')->scope('age',10)->delete();
delete without condition
更新使用:User::scope('user')->scope('age',10)->update(['name'=>'张三']); 出现错误:miss update condition
User::scope('user')->scope('age',10)->update(['name'=>'张三']);
miss update condition
但使用 User::scope('user')->scope('age',10)->fetchsql(true)->delete(); 得到的SQL语句是没问题的
User::scope('user')->scope('age',10)->fetchsql(true)->delete();
使用:User::scope('user')->where('age',10)->delete(); 则没问题
User::scope('user')->where('age',10)->delete();
请问是不支持多scope一起使用了吗?
已经修正了
3.0.14 升级到3.0.24后
删除使用:
User::scope('user')->scope('age',10)->delete();
出现错误:delete without condition
更新使用:
User::scope('user')->scope('age',10)->update(['name'=>'张三']);
出现错误:miss update condition
但使用
User::scope('user')->scope('age',10)->fetchsql(true)->delete();
得到的SQL语句是没问题的使用:
User::scope('user')->where('age',10)->delete();
则没问题请问是不支持多scope一起使用了吗?