From: Moritz Onken Date: Fri, 31 Jul 2009 10:51:20 +0000 (+0000) Subject: POD fix X-Git-Tag: v0.08109~57 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=63abecd3c64abc848fcd4790831074fd7afe2b01;p=dbsrgits%2FDBIx-Class.git POD fix --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 1308a00..09bd12c 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -293,7 +293,7 @@ sub search_rs { my $new_attrs = { %{$our_attrs}, %{$attrs} }; # merge new attrs into inherited - foreach my $key (qw/join prefetch +select +as bind/) { + foreach my $key (qw/join order_by prefetch +select +as bind/) { next unless exists $attrs->{$key}; $new_attrs->{$key} = $self->_merge_attr($our_attrs->{$key}, $attrs->{$key}); } @@ -3392,7 +3392,7 @@ may or may not be what you want. If you specify a condition on a prefetched relationship, ONLY those rows that match the prefetched condition will be fetched into that relationship. This means that adding prefetch to a search() B what is returned by -traversing a relationship. So, if you have Chas_many(CDs)> and you do +traversing a relationship. So, if you have C<< Artist->has_many(CDs) >> and you do my $artist_rs = $schema->resultset('Artist')->search({ 'cds.year' => 2008,