thinkphp6 取消Query类的setInc/setDec方法,统一使用inc/dec方法替代
取消setInc/setDec方法
有的inc这种也不支持,就只能update改了
取消Query类的setInc/setDec方法,统一使用inc/dec方法替代。例如:
Db::name('user')->where('id', 1)
->inc('exp')
->dec('score')
->update();
thinkphp6 取消Query类的setInc/setDec方法,统一使用inc/dec方法替代
取消setInc/setDec方法
有的inc这种也不支持,就只能update改了
取消Query类的setInc/setDec方法,统一使用inc/dec方法替代。例如:
Db::name('user')->where('id', 1)
->inc('exp')
->dec('score')
->update();