- function criteria(Row $row, array &$where) {
- $where["{$this->column}="] = $row->getData()[$this->column];
- $row->{$this->column}->mod(+1);
+ function update(\SplSubject $table, Row $row = null, $event = null, array &$where = null) {
+ if ($event === "update") {
+ $where["{$this->column}="] = $row->getData()[$this->column];
+ $row->{$this->column}->mod(+1);
+ }