public static function findCollection($sql = null, $bindings = [])
    {
        $collection = DB::findCollection(static::getTable(), $sql, $bindings);
        return new BeanCollection($collection);
    }
public static function findCollection($sql = null, $bindings = [])
    {
        $collection = DB::findCollection(static::getTable(), $sql, $bindings);
        return new BeanCollection($collection);
    }
public static function findCollection ( $ sql = null , $ bindings = [ ] ) { $ collection = DB :: findCollection ( static :: getTable ( ) , $ sql , $ bindings ) ; return new BeanCollection ( $ collection ) ; }
Finds a BeanCollection using the repository.
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.

@param  string $sql      SQL query to find the desired bean, starting right after WHERE clause
@param  array  $bindings values array of values to be bound to parameters in query

@return BeanCollection
Finds a BeanCollection using the repository . 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 .