Explicitly initialize column of partition by clause and pass it in find()'s options argument

This commit is contained in:
eugene-frb 2015-11-25 13:56:59 -08:00
parent 96020c7e7e
commit ba4600e564
1 changed files with 1 additions and 1 deletions

View File

@ -507,7 +507,7 @@ Inclusion.include = function (objects, include, options, cb) {
inq: uniq(sourceIds) inq: uniq(sourceIds)
}; };
relation.applyScope(null, filter); relation.applyScope(null, filter);
options.findCaller = 'includeHasMany'; options.partitionBy = relation.keyTo;
relation.modelTo.find(filter, options, targetFetchHandler); relation.modelTo.find(filter, options, targetFetchHandler);
/** /**
* Process fetched related objects * Process fetched related objects