1 package DBIx::Class::ResultClass::HashRefInflator;
3 # $me is the hashref of cols/data from the immediate resultsource
4 # $rest is a deep hashref of all the data from the prefetched
10 # to avoid emtpy has_many rels contain one empty hashref
11 return if (not keys %$me);
14 map { ($_ => ref($rest->{$_}[0]) eq 'ARRAY' ? [ map { mk_hash(@$_) } @{$rest->{$_}} ] : mk_hash(@{$rest->{$_}}) ) } keys %$rest
19 my ($self, $source, $me, $prefetch) = @_;
21 return mk_hash($me, $prefetch);