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

Commit f096d9be by Sascha Depold

support model instead of daoFactory

1 parent 156e63a4
Showing with 5 additions and 0 deletions
......@@ -379,6 +379,11 @@ module.exports = (function() {
}
if (typeof include === 'object') {
if (include.hasOwnProperty('model')) {
include.daoFactory = include.model
delete include.model
}
if (include.hasOwnProperty('daoFactory') && (include.hasOwnProperty('as'))) {
var usesAlias = (include.as !== include.daoFactory.tableName)
, association = (usesAlias ? this.getAssociationByAlias(include.as) : this.getAssociation(include.daoFactory))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!