From ba4600e564f1fa936be8ee05a6fe64430c75daf3 Mon Sep 17 00:00:00 2001 From: eugene-frb Date: Wed, 25 Nov 2015 13:56:59 -0800 Subject: [PATCH] Explicitly initialize column of partition by clause and pass it in find()'s options argument --- lib/include.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/include.js b/lib/include.js index 19573068..ba77cdf7 100644 --- a/lib/include.js +++ b/lib/include.js @@ -507,7 +507,7 @@ Inclusion.include = function (objects, include, options, cb) { inq: uniq(sourceIds) }; relation.applyScope(null, filter); - options.findCaller = 'includeHasMany'; + options.partitionBy = relation.keyTo; relation.modelTo.find(filter, options, targetFetchHandler); /** * Process fetched related objects