Skip to content

Commit

Permalink
fix to update with undefined relations
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowcat-mst committed Apr 8, 2006
1 parent 986e4fc commit b044b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DBIx/Class/Relationship/CascadeActions.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sub update {
my %rels = map { $_ => $source->relationship_info($_) } $source->relationships;
my @cascade = grep { $rels{$_}{attrs}{cascade_update} } keys %rels;
foreach my $rel (@cascade) {
$_->update for $self->$rel;
$_->update for grep defined, $self->$rel;
}
return $ret;
}
Expand Down

0 comments on commit b044b5d

Please sign in to comment.