findCollection() public method

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
コード例 #1
0
ファイル: Facade.php プロジェクト: up9cloud/redbean
 /**
  * Finds a bean collection.
  * Use this for large datasets.
  *
  * @param string $type     the type of bean you are looking for
  * @param string $sql      SQL query to find the desired bean, starting right after WHERE clause
  * @param array  $bindings array of values to be bound to parameters in query
  *
  * @return BeanCollection
  */
 public static function findCollection($type, $sql = NULL, $bindings = array())
 {
     return self::$finder->findCollection($type, $sql, $bindings);
 }