Hello! Following code fails:
$row = $table[$old_id];
$row["id"] = $new_id;
$row->update();
This is beause NotORM_Row::offsetSet($var,$value) stores the value in the $this->modified array and also owerwrites values in $this->row.
Why is that? After all the value of $row["id"] shoud be IMO $old_id until $row->update() is called.
Martin