projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Make 'filter' rels work half-way sanely with partial prefetch
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
Relationship
/
BelongsTo.pm
diff --git
a/lib/DBIx/Class/Relationship/BelongsTo.pm
b/lib/DBIx/Class/Relationship/BelongsTo.pm
index
e55d1bd
..
df95541
100644
(file)
--- a/
lib/DBIx/Class/Relationship/BelongsTo.pm
+++ b/
lib/DBIx/Class/Relationship/BelongsTo.pm
@@
-73,6
+73,8
@@
sub belongs_to {
and
keys %$cond == 1
and
+ (keys %$cond)[0] =~ /^foreign\./
+ and
$class->has_column($rel)
) ? 'filter' : 'single';