mixed pq\Gateway\Table::find([array $where = NULL[, string $order = NULL[, int $limit = 0[, int $offset = 0[, string $lock = NULL]]]]])Find rows in the table. See pq\Gateway\Table::execute() and pq\Gateway\Table::onResult().
array $where# = NULLstring $order# = NULLint $limit# = 0int $offset# = 0string $lock# = NULL
<?php
use pq\Gateway\Table;
$table = new Table("account_email");
$transaction = $table->getConnection()->startTransaction();
$rowset = $table->find(["email=" => "mike@php.net"], null, 0, 0, "UPDATE");
$rowset->apply(function(pq\Gateway\Row $row) {
$row->email = "mike@PHP.net";
});
$rowset->update(false);
$transaction->commit();
?>