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

Commit 391610ea by overlookmotel

Remove include.daoFactory

1 parent 6a3d2ee3
Showing with 2 additions and 0 deletions
......@@ -1727,7 +1727,9 @@ module.exports = (function() {
} else if (typeof include !== 'object') {
throw new Error('Include unexpected. Element has to be either a Model, an Association or an object.');
} else if (include.hasOwnProperty('daoFactory')) {
// convert daoFactory to model (for backwards compatibility)
include.model = include.daoFactory;
delete include.daoFactory;
}
return include;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!