Merge pull request #764 from eugene-frb/master
Capture includeHasMany() as a find()'s caller by findCaller option
This commit is contained in:
commit
3a3cb5b7cb
|
@ -542,6 +542,7 @@ Inclusion.include = function (objects, include, options, cb) {
|
|||
inq: uniq(sourceIds)
|
||||
};
|
||||
relation.applyScope(null, filter);
|
||||
options.partitionBy = relation.keyTo;
|
||||
relation.modelTo.find(filter, options, targetFetchHandler);
|
||||
/**
|
||||
* Process fetched related objects
|
||||
|
|
Loading…
Reference in New Issue