Extends
lithium\data\Collection
Filters a copy of the items in the collection.
Overridden to load any data that has not yet been loaded.
Parameters
- callback $filter Callback to use for filtering.
- array $options The available options are: - `'collect'`: If `true`, the results will be returned wrapped in a new `Collection` object or subclass.
Returns
mixed The filtered items. Will be an array unless `'collect'` is defined in the `$options` argument, then an instance of this class will be returned.Source
public function find($filter, array $options = array()) {
$this->offsetGet(null);
return parent::find($filter, $options);
}