From: Matt S Trout Date: Mon, 16 Apr 2012 16:35:46 +0000 (+0000) Subject: fix is_single detection X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f68a3a874c6d00aeb16696996d61ecb80a7a4017;p=dbsrgits%2FDBIx-Class-Historic.git fix is_single detection --- diff --git a/lib/DBIx/Class/Storage/DBIHacks.pm b/lib/DBIx/Class/Storage/DBIHacks.pm index 3bd8f5b..f71e0ef 100644 --- a/lib/DBIx/Class/Storage/DBIHacks.pm +++ b/lib/DBIx/Class/Storage/DBIHacks.pm @@ -299,7 +299,10 @@ sub _resolve_aliastypes_from_select_args { foreach my $alias (reverse @alias_dq) { $alias_list->{$alias->{to}} = $alias; my $join_path = $alias->{'dbix-class.join_path'}||[]; - unless ($alias->{is_single} and !grep { $multiplying->{$_} } @$join_path) { + unless ( + $alias->{'dbix-class.is_single'} + and !grep { $multiplying->{$_} } @$join_path + ) { $multiplying->{$alias->{to}} = $join_path; } unless ($join_dq{$alias}{outer}) {