projects
/
dbsrgits/DBIx-Class-Historic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Merge 'DBIx-Class-current' into 'bulk_create'
[dbsrgits/DBIx-Class-Historic.git]
/
lib
/
DBIx
/
Class
/
ResultClass
/
HashRefInflator.pm
diff --git
a/lib/DBIx/Class/ResultClass/HashRefInflator.pm
b/lib/DBIx/Class/ResultClass/HashRefInflator.pm
index
ca6741e
..
9a2c8eb
100644
(file)
--- a/
lib/DBIx/Class/ResultClass/HashRefInflator.pm
+++ b/
lib/DBIx/Class/ResultClass/HashRefInflator.pm
@@
-63,6
+63,16
@@
sub mk_hash {
# to avoid emtpy has_many rels contain one empty hashref
return if (not keys %$me);
+ my $def;
+
+ foreach (values %$me) {
+ if (defined $_) {
+ $def = 1;
+ last;
+ }
+ }
+ return unless $def;
+
return { %$me,
map {
( $_ =>