不要怂,就是干,撸起袖子干!

You need to sign in or sign up before continuing.
Commit a191b8fc by Joost de Vries

Implemented alias-based prefetching for findAll as well

1 parent 83f5e281
Showing with 4 additions and 0 deletions
...@@ -140,6 +140,10 @@ module.exports = (function() { ...@@ -140,6 +140,10 @@ module.exports = (function() {
includes.forEach(function(daoName) { includes.forEach(function(daoName) {
options.include[daoName] = this.daoFactoryManager.getDAO(daoName) options.include[daoName] = this.daoFactoryManager.getDAO(daoName)
if (!options.include[daoName]) {
options.include[daoName] = this.getAssociationByAlias(daoName).target
}
}.bind(this)) }.bind(this))
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!