pass through self attrs to rel_rs (for order_by, group_by etc.)
Matt S Trout [Tue, 11 Jul 2006 13:20:03 +0000 (13:20 +0000)]
lib/DBIx/Class/ResultSet.pm

index 7bb8c83..bbb456e 100644 (file)
@@ -1426,6 +1426,9 @@ sub related_resultset {
 
     $self->result_source->schema->resultset($rel_obj->{class})->search_rs(
       undef, {
+        %{$self->{attrs}||{}},
+        join => undef,
+        prefetch => undef,
         select => undef,
         as => undef,
         alias => $alias,