pq\Gateway\Rowset pq\Gateway\Rowset::filter(callable $cb)

Filter the rows a copy of the rowset should contain.

Params:

Returns:

Example:


<?php

use pq\Gateway\Table;

$table = new Table("account");
$table->find()
    ->
apply(function($row) {
        
// ...
    
})->filter(function ($row) {
        return 
$row->isDirty();
    })->
update();

?>