How can I update field with query builder in Yii2? I can\'t find this in documentation.
Thanks!
UPD
This is the solution:
Yii::$app->db->createCommand() ->update('customer', ['otp' => $otp_rand], ['custid' => 23]) ->execute();
**this is the right syntax and works & tested in yii2 **