using _resolve_condition
authorZbigniew Lukasiak <zby@zby.aster.net.pl>
Thu, 21 May 2009 13:33:36 +0000 (15:33 +0200)
committerZbigniew Lukasiak <zby@zby.aster.net.pl>
Thu, 21 May 2009 13:33:36 +0000 (15:33 +0200)
lib/DBIx/Class/ResultSet/RecursiveUpdate.pm
t/var/dvdzbr.db

index c07ae6b4e729535dc0e42550ecb0ecc0c815548f..b4ba9b8f57e630d76c8e947229279911cd525976 100644 (file)
@@ -2,7 +2,7 @@ use strict;
 use warnings;
 package DBIx::Class::ResultSet::RecursiveUpdate;
 
-use version; our $VERSION = qv('0.007');
+use version; our $VERSION = qv('0.008');
 
 use base qw(DBIx::Class::ResultSet);
 
@@ -162,8 +162,13 @@ sub _update_relation {
     my ( $self, $name, $updates, $object, $info ) = @_;
     my $related_result =
       $self->related_resultset($name)->result_source->resultset;
-    my $resolved =
-      $self->result_source->resolve_condition( $info->{cond}, $name, $object );
+    my $resolved;
+    if( $self->result_source->can( '_resolve_condition' ) ){
+        $resolved = $self->result_source->_resolve_condition( $info->{cond}, $name, $object );
+    }
+    else{
+        $resolved = $self->result_source->resolve_condition( $info->{cond}, $name, $object );
+    }
 
  #                    warn 'resolved: ' . Dumper( $resolved ); use Data::Dumper;
     $resolved = undef
index fd45f65486b2e61b506888f0d3c7c97ccbbb49d2..5a07a70dbcebd4559d5904df0f966ca24beec97d 100644 (file)
Binary files a/t/var/dvdzbr.db and b/t/var/dvdzbr.db differ
This page took 0.021053 seconds and 4 git commands to generate.