X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fpq-gateway;a=blobdiff_plain;f=lib%2Fpq%2FGateway%2FRow.php;h=a8b879370f347b4ad494edd78d99a25d7b079328;hp=5c0efa4ac19a30da22c3bb7627d8ffb4bd58ada5;hb=4879955d1b86d606dc24401f26ebde9be7612fbf;hpb=20d2b6bcce8f1c7a1aaa375b86ffb5be30674956 diff --git a/lib/pq/Gateway/Row.php b/lib/pq/Gateway/Row.php index 5c0efa4..a8b8793 100644 --- a/lib/pq/Gateway/Row.php +++ b/lib/pq/Gateway/Row.php @@ -79,6 +79,12 @@ class Row implements \JsonSerializable return false; } + function refresh() { + $this->data = $this->table->find($this->criteria(), null, 1, 0)->current()->data; + $this->cell = array(); + return $this; + } + /** * Fill modified cells * @return \pq\Gateway\Row