YII 怎么更新數(shù)據(jù)
1 回答

至尊寶的傳說(shuō)
TA貢獻(xiàn)1789條經(jīng)驗(yàn) 獲得超10個(gè)贊
Yii 有自己的保存方法的,AR方式中有個(gè)save方法,就能保存的
1 2 3 4 5 | $customer = Customer::find() ->where(['id' => 1]) ->one(); $customer->name = 'baidu'; $customer->save(); |
- 1 回答
- 0 關(guān)注
- 783 瀏覽
添加回答
舉報(bào)
0/150
提交
取消