Explicitly initialize column of partition by clause and pass it in find()'s options argument
This commit is contained in:
parent
96020c7e7e
commit
ba4600e564
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue