projects
/
m6w6
/
pq-gateway
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
added Table::with()
[m6w6/pq-gateway]
/
lib
/
pq
/
Gateway
/
Table
/
OptimisticLock.php
diff --git
a/lib/pq/Gateway/Table/OptimisticLock.php
b/lib/pq/Gateway/Table/OptimisticLock.php
index 08e5ae364f687f2e019cc633d83dc7c72542c897..8c2ec7b9741cb52b57e4c6bee3fdf9294726a81b 100644
(file)
--- a/
lib/pq/Gateway/Table/OptimisticLock.php
+++ b/
lib/pq/Gateway/Table/OptimisticLock.php
@@
-23,11
+23,11
@@
class OptimisticLock implements LockInterface
}
/**
}
/**
- * @i
mplements LockInterface
+ * @i
nheritdoc
* @param \pq\Gateway\Row $row
* @param array $where reference to the criteria
*/
* @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);
}
$where["{$this->column}="] = $row->getData()[$this->column];
$row->{$this->column}->mod(+1);
}