From: Peter Rabbitson Date: Mon, 8 Feb 2010 11:20:47 +0000 (+0000) Subject: Fix some fallout X-Git-Tag: v0.08118~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9c042209231eeb00995dd45e54f560d7da4105b4;p=dbsrgits%2FDBIx-Class.git Fix some fallout --- diff --git a/lib/DBIx/Class/Row.pm b/lib/DBIx/Class/Row.pm index 36f5dd1..e4a1865 100644 --- a/lib/DBIx/Class/Row.pm +++ b/lib/DBIx/Class/Row.pm @@ -758,9 +758,9 @@ sub get_inflated_columns { my %inflated; for my $col (keys %loaded_colinfo) { - my $acc = $loaded_colinfo{$col}{accessor}; - if (defined $acc) { - $inflated{$col} = $self->$acc; + if (exists $loaded_colinfo{$col}{accessor}) { + my $acc = $loaded_colinfo{$col}{accessor}; + $inflated{$col} = $self->$acc if defined $acc; } else { $inflated{$col} = $self->$col; diff --git a/t/multi_create/standard.t b/t/multi_create/standard.t index 703f1d6..7aca7a4 100644 --- a/t/multi_create/standard.t +++ b/t/multi_create/standard.t @@ -72,7 +72,7 @@ throws_ok ( ], }); }, - qr/Recursive update is not supported over relationships of type multi/, + qr/Recursive update is not supported over relationships of type 'multi'/, 'create via update of multi relationships throws an exception' );