Pman_Core_RooPostTrait,
Pman_Core_RooJsonOutputTrait;
*/
-
- /**
+ /**
* if set to an array (when extending this, then you can restrict which tables are available
*/
var $validTables = false;
$this->jerr($x->_lastError->toString());
}
$ev = $this->addEvent("ADD", $x);
+
+ if (isset($cols['updated_id'])) {
+ $old = clone($x);
+ $x->updated_id = $ev->id;
+ $x->update($old);
+ }
+
if (method_exists($x, 'onInsert')) {
$x->onInsert($_REQUEST, $this, $ev);
$x->onUpload($this, $_REQUEST);
}
+
return $this->selectSingle(
DB_DataObject::factory($x->tableName()),
$x->pid()
$this->jerr($x->_lastError->toString());
}
$ev = $this->addEvent("EDIT", $x);
-
+
+ if (isset($cols['updated_id'])) {
+ $old = clone($x);
+ $x->updated_id = $ev->id;
+ $x->update($old);
+ }
if (method_exists($x, 'onUpdate')) {
$x->onUpdate($old, $req, $this, $ev);
}
if ($ev) {
$ev->audit($x, $old);
}
-
+
return $this->selectSingle(
DB_DataObject::factory($x->tableName()),