From: Alexander Hartmaier Date: Mon, 4 Oct 2010 12:05:57 +0000 (+0200) Subject: don't try to use ->resolve_condition which was deprecated in DBIx::Class 0.08103... X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=8f5e0a3a71ba1dc147c876d94004cda0d07ec200;p=chaz%2Fp5-DBIx-Class-ResultSet-RecursiveUpdate don't try to use ->resolve_condition which was deprecated in DBIx::Class 0.08103 and bump the DBIx::Class requirement --- diff --git a/Makefile.PL b/Makefile.PL index 697eb3b..a2f957f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -10,7 +10,7 @@ license 'perl'; repository 'http://github.com/zby/DBIx--Class--ResultSet--RecursiveUpdate/tree/master'; # prereqs -requires 'DBIx::Class' => '0.08100'; +requires 'DBIx::Class' => '0.08103'; requires 'DBIx::Class::IntrospectableM2M'; requires 'SQL::Translator' => '0.11005'; requires 'DateTime'; diff --git a/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm b/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm index b9bf433..78a4bb2 100644 --- a/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm +++ b/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm @@ -194,11 +194,6 @@ sub _update_relation { $self->result_source->_resolve_condition( $info->{cond}, $name, $object ); } - else { - $resolved = - $self->result_source->resolve_condition( $info->{cond}, $name, - $object ); - } # warn "$name resolved: " . Dumper( $resolved ); use Data::Dumper; $resolved = {}