[Bast-commits] r5072 - DBIx-Class/0.08/trunk/lib/DBIx/Class
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Fri Nov 7 07:30:49 GMT 2008
Author: ribasushi
Date: 2008-11-07 07:30:49 +0000 (Fri, 07 Nov 2008)
New Revision: 5072
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/Row.pm
Log:
Fix loss of objects on multicreate over several 1:M relations
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Row.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Row.pm 2008-11-07 07:29:21 UTC (rev 5071)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Row.pm 2008-11-07 07:30:49 UTC (rev 5072)
@@ -302,7 +302,7 @@
my $reverse = $source->reverse_relationship_info($relname);
foreach my $obj (@cands) {
$obj->set_from_related($_, $self) for keys %$reverse;
- my $them = { $obj->get_inflated_columns };
+ my $them = { %{$obj->{_relationship_data} || {} }, $obj->get_inflated_columns };
if ($self->__their_pk_needs_us($relname, $them)) {
$obj = $self->find_or_create_related($relname, $them);
} else {
More information about the Bast-commits
mailing list