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

Commit 6d51642b by Mick Hansen

fix(include): ignore pseudo association for new include.association logic

1 parent b992988b
Showing with 1 additions and 1 deletions
...@@ -1822,7 +1822,7 @@ module.exports = (function() { ...@@ -1822,7 +1822,7 @@ module.exports = (function() {
throw new Error('Include malformed. Expected attributes: model or association'); throw new Error('Include malformed. Expected attributes: model or association');
} }
if (include.association) include.model = include.association.source; if (include.association && !include._pseudo) include.model = include.association.source;
tableNames[include.model.getTableName()] = true; tableNames[include.model.getTableName()] = true;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!