That was tricky :)
Peter Rabbitson [Sun, 17 Jan 2010 13:00:20 +0000 (13:00 +0000)]
lib/DBIx/Class/ResultSource.pm

index 04b634c..0a2ae05 100644 (file)
@@ -1261,7 +1261,7 @@ sub _resolve_join {
                   ? 'left'
                   : $rel_info->{attrs}{join_type}
                 ,
-               -join_path => [@$jpath, $join],
+               -join_path => [@$jpath, $as],
                -is_single => (List::Util::first { $rel_info->{attrs}{accessor} eq $_ } (qw/single filter/) ),
                -alias => $as,
                -relation_chain_depth => $seen->{-relation_chain_depth} || 0,