lithium\data\collection\MultiKeyRecordSet::map()
Overrides
lithium\util\Collection::map()
Applies a callback to a copy of all data in the collection and returns the result.
Overriden to load any data that has not yet been loaded.
Parameters
-
callback
$filterThe filter to apply.
-
array
$optionsThe available options are:
'collect': Iftrue, the results will be returned wrapped in a newCollectionobject or subclass.
Returns
objectThe filtered data.
Source
public function map($filter, array $options = []) {
$this->offsetGet(null);
return parent::map($filter, $options);
}