X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fpq-gateway;a=blobdiff_plain;f=lib%2Fpq%2FGateway%2FTable%2FOptimisticLock.php;h=8c2ec7b9741cb52b57e4c6bee3fdf9294726a81b;hp=08e5ae364f687f2e019cc633d83dc7c72542c897;hb=3c8b32baaac62855e2c9f5bfdb5ede9685ce2b76;hpb=580991717f5e8bb237403757e2111a8d04aca616 diff --git a/lib/pq/Gateway/Table/OptimisticLock.php b/lib/pq/Gateway/Table/OptimisticLock.php index 08e5ae3..8c2ec7b 100644 --- a/lib/pq/Gateway/Table/OptimisticLock.php +++ b/lib/pq/Gateway/Table/OptimisticLock.php @@ -23,11 +23,11 @@ class OptimisticLock implements LockInterface } /** - * @implements LockInterface + * @inheritdoc * @param \pq\Gateway\Row $row * @param array $where reference to the criteria */ - function criteria(Row $row, array &$where) { + function onUpdate(Row $row, array &$where) { $where["{$this->column}="] = $row->getData()[$this->column]; $row->{$this->column}->mod(+1); }