A bean collection can be used to retrieve one bean at a time using
cursors - this is useful for processing large datasets. A bean collection
will not load all beans into memory all at once, just one at a time.
public findCollection ( string $type, string $sql, array $bindings = [] ) : redbeanphp\BeanCollection | ||
$type | string | the type of bean you are looking for |
$sql | string | SQL query to find the desired bean, starting right after WHERE clause |
$bindings | array | values array of values to be bound to parameters in query |
return | redbeanphp\BeanCollection |