Anton Firefly Mon Mar 28 12:03:39 -0400 2011

Subject: update table,use the field names

$data = array('left_key' => 'left_key+2');
static::table()->update($data, array('id' => 1));

Is not supported?


Yoan B Tue Mar 29 06:46:20 -0400 2011

Did you even try?

->update("left_key = left_key + 2");
->update(array("left_key" => "left_key + 2"));

both produces:

UPDATE … SET left_key = left_key + 2

Dive into the tests if your lost, in that case SQLBuilder.

(1-1/1)