How can I update field with query builder in Yii2? I can\'t find this in documentation.
Thanks!
UPD
This is the solution:
Also, if you need to use the column itself in the update query, you must use yii\db\Expression.
\Yii::$app->db->createCommand() ->update('user', ['visits' => new \yii\db\Expression('visits + 1')], 'age > 30') ->execute();