protected function get_list_of_favourites_from_records(array $records) {
        $list = [];
        foreach ($records as $index => $record) {
            $list[$index] = $this->get_favourite_from_record($record);
        }
        return $list;
    }
protected function get_list_of_favourites_from_records(array $records) {
        $list = [];
        foreach ($records as $index => $record) {
            $list[$index] = $this->get_favourite_from_record($record);
        }
        return $list;
    }
protected function get_list_of_favourites_from_records ( array $ records ) { $ list = [ ] ; foreach ( $ records as $ index => $ record ) { $ list [ $ index ] = $ this -> get_favourite_from_record ( $ record ) ; } return $ list ; }
Get a list of favourite objects, based on a list of records.
@param array $records the record we wish to hydrate.
@return array the list of favourites.
Get a list of favourite objects based on a list of records .