From: Luke Saunders Date: Tue, 2 Oct 2007 15:43:16 +0000 (+0000) Subject: added comment explaining change X-Git-Tag: v0.08010~58 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b42719999e1f415e8a57046bc976622922671c8d;hp=29cfcca227a84f62f8d11a7fc582430c84050d20;p=dbsrgits%2FDBIx-Class.git added comment explaining change --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index 9da6a14..a7dfe42 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -1449,6 +1449,9 @@ sub new_result { my $alias = $self->{attrs}{alias}; my $collapsed_cond = $self->{cond} ? $self->_collapse_cond($self->{cond}) : {}; + + # precendence must be given to passed values over values inherited from the cond, + # so the order here is important. my %new = ( %{ $self->_remove_alias($collapsed_cond, $alias) }, %{ $self->_remove_alias($values, $alias) },