Skip to content

Commit

Permalink
fix(model): handle setting populated path set via Document#populate()
Browse files Browse the repository at this point in the history
Fix #7302
  • Loading branch information
vkarpov15 committed Jan 20, 2019
1 parent 0e1772f commit 29f6709
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -3470,6 +3470,7 @@ function assignVals(o) {
cur = cur[parts[j]];
}
if (docs[i].$__) {
o.allOptions.model = o.allOptions.Model;
docs[i].populated(o.path, o.allIds[i], o.allOptions);
}
utils.setValue(o.path, rawIds[i], docs[i], setValue);
Expand Down

0 comments on commit 29f6709

Please sign in to comment.