Avoids overloading and lets dataobject classes use onUpdateKeys()
to do special stuff, like if a key is made up of a hash of other fields etc.
throw new ServerException('DataObject must be the result of a query (N>=1) before updateWithKeys()');
}
+ $this->onUpdateKeys($orig);
+
// do it in a transaction
$this->query('BEGIN');
// NOOP by default
}
+ protected function onUpdateKeys(Managed_DataObject $orig)
+ {
+ // NOOP by default
+ }
+
public function insert()
{
$this->onInsert();