[Bast-commits] r5386 - in
DBIx-Class-ResultSet-RecursiveUpdate/1.000/trunk:
lib/DBIx/Class/ResultSet t/var
zby at dev.catalyst.perl.org
zby at dev.catalyst.perl.org
Fri Jan 30 16:18:33 GMT 2009
Author: zby
Date: 2009-01-30 16:18:33 +0000 (Fri, 30 Jan 2009)
New Revision: 5386
Modified:
DBIx-Class-ResultSet-RecursiveUpdate/1.000/trunk/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm
DBIx-Class-ResultSet-RecursiveUpdate/1.000/trunk/t/var/dvdzbr.db
Log:
code for resolving
Modified: DBIx-Class-ResultSet-RecursiveUpdate/1.000/trunk/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm
===================================================================
--- DBIx-Class-ResultSet-RecursiveUpdate/1.000/trunk/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm 2009-01-30 14:33:24 UTC (rev 5385)
+++ DBIx-Class-ResultSet-RecursiveUpdate/1.000/trunk/lib/DBIx/Class/ResultSet/RecursiveUpdate.pm 2009-01-30 16:18:33 UTC (rev 5386)
@@ -47,6 +47,10 @@
_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 );
}
Modified: DBIx-Class-ResultSet-RecursiveUpdate/1.000/trunk/t/var/dvdzbr.db
===================================================================
(Binary files differ)
More information about the Bast-commits
mailing list