j4mie/idiorm — pull request #46 by ldbglobe (2011-10-14 08:55:51+00:00)
Title: Override save() behaviour (only for update action)

Override save() behaviour (only for update action)
=> make save operation on table with compound primary key more easy

Usage :

$obj->save(array('field1'=>'value','field2'=>'value','field3'=>'value');
or
$obj->save('`field1`="value" AND `field2`="value" AND `field3`="value"');

This modification can be used trough Paris if you add $updateWhere parameter on the Model::save() method

public function save($updateWhere=NULL) {
return $this->orm->save($updateWhere);
}