}
/**
- * Export current state with security sensitive data removed. You should override that, just
- * calls export() by default.
+ * Export current state with security sensitive data removed. You should override that.
+ * Just calls export() by default.
* @return array
*/
function exportPublic() {
$where["$col IS"] = new QueryExpr("NULL");
}
}
-
- if (($lock = $this->getTable()->getLock())) {
- $lock->criteria($this, $where);
- }
return $where;
}
* @return \pq\Gateway\Row
*/
function update() {
- $rowset = $this->table->update($this->criteria(), $this->changes());
+ $criteria = $this->criteria();
+ if (($lock = $this->getTable()->getLock())) {
+ $lock->onUpdate($this, $criteria);
+ }
+ $rowset = $this->table->update($criteria, $this->changes());
if (!count($rowset)) {
throw new \UnexpectedValueException("No row updated");
}