diff --git a/lib/include.js b/lib/include.js index a88a2458..19573068 100644 --- a/lib/include.js +++ b/lib/include.js @@ -507,6 +507,7 @@ Inclusion.include = function (objects, include, options, cb) { inq: uniq(sourceIds) }; relation.applyScope(null, filter); + options.findCaller = 'includeHasMany'; relation.modelTo.find(filter, options, targetFetchHandler); /** * Process fetched related objects