X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fpq-gateway;a=blobdiff_plain;f=lib%2Fpq%2FGateway%2FTable%2FPessimisticLock.php;h=2076dbd2b7dc05aa06b7124a7088de4d0eb843b0;hp=e711b461226544b8c3c258aa26e2beacab0e85dd;hb=3c8b32baaac62855e2c9f5bfdb5ede9685ce2b76;hpb=580991717f5e8bb237403757e2111a8d04aca616 diff --git a/lib/pq/Gateway/Table/PessimisticLock.php b/lib/pq/Gateway/Table/PessimisticLock.php index e711b46..2076dbd 100644 --- a/lib/pq/Gateway/Table/PessimisticLock.php +++ b/lib/pq/Gateway/Table/PessimisticLock.php @@ -15,7 +15,7 @@ class PessimisticLock implements LockInterface * @param array $ignore * @throws \UnexpectedValueException if the row has already been modified */ - function criteria(Row $row, array &$ignore) { + function onUpdate(Row $row, array &$ignore) { $where = array(); foreach ($row->getIdentity() as $col => $val) { if (isset($val)) {