- $criteria = $this->criteria();
- if (($lock = $this->getTable()->getLock())) {
- $lock->onUpdate($this, $criteria);
- }
- $rowset = $this->table->update($criteria, $this->changes());
+ $where = $this->criteria();
+ $this->table->notify($this, "update", $where);
+ $rowset = $this->table->update($where, $this->changes());