projects
/
dbsrgits/DBIx-Class-Historic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fixed bug for undef_on_null_fk edge case
[dbsrgits/DBIx-Class-Historic.git]
/
lib
/
DBIx
/
Class
/
Relationship
/
Accessor.pm
diff --git
a/lib/DBIx/Class/Relationship/Accessor.pm
b/lib/DBIx/Class/Relationship/Accessor.pm
index
dcb906e
..
6ec2f25
100644
(file)
--- a/
lib/DBIx/Class/Relationship/Accessor.pm
+++ b/
lib/DBIx/Class/Relationship/Accessor.pm
@@
-31,6
+31,7
@@
sub add_relationship_accessor {
$rel_info->{cond}, $rel, $self
);
if ($rel_info->{attrs}->{undef_on_null_fk}){
+ return unless ref($cond) eq 'HASH';
return if grep { not defined } values %$cond;
}
my $val = $self->find_related($rel, {}, {});