added Table::with()
[m6w6/pq-gateway] / lib / pq / Gateway / Table / PessimisticLock.php
index e711b461226544b8c3c258aa26e2beacab0e85dd..2076dbd2b7dc05aa06b7124a7088de4d0eb843b0 100644 (file)
@@ -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)) {