lithium\data\collection\MultiKeyRecordSet::find()
Overrides
lithium\util\Collection::find()
Filters a copy of the items in the collection.
Overridden to load any data that has not yet been loaded.
Parameters
-
callback
$filterCallback to use for filtering.
-
array
$optionsThe available options are:
'collect': Iftrue, the results will be returned wrapped in a newCollectionobject or subclass.
Returns
mixedThe 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 = []) {
$this->offsetGet(null);
return parent::find($filter, $options);
}