code for resolving
authorzby <zby@bd8105ee-0ff8-0310-8827-fb3f25b6796d>
Fri, 30 Jan 2009 16:18:33 +0000 (16:18 +0000)
committerzby <zby@bd8105ee-0ff8-0310-8827-fb3f25b6796d>
Fri, 30 Jan 2009 16:18:33 +0000 (16:18 +0000)
lib/DBIx/Class/ResultSet/RecursiveUpdate.pm
t/var/dvdzbr.db

index 50be12315ef196fe69218d148b8a0d08f568a010..95725d0a5b9764ab58ebc5642092ccfe6d94c009 100644 (file)
@@ -47,6 +47,10 @@ sub recursive_update {
                     _master_relation_cond( $object, $info->{cond}, $self->_get_pk_for_related( $name ) )
                 ){
                     my $related_result = $object->related_resultset( $name );
+                    my $resolved =  $self->result_source->resolve_condition(
+                        $info->{cond}, $name, $object
+                    );
+#                    warn 'resolved: ' . Dumper( $resolved ); use Data::Dumper;
                     my $sub_object = $related_result->recursive_update( $updates->{$name} );
                     $object->set_from_related( $name, $sub_object );
                 }
index ffd99d843cf9400d2ac21d617e4f275866891db2..bd53857e33867ad8c6daf7167d052a7d77f57d9d 100644 (file)
Binary files a/t/var/dvdzbr.db and b/t/var/dvdzbr.db differ
This page took 0.020456 seconds and 4 git commands to generate.