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

Commit 4aa52fb9 by overlookmotel

Use model names not singularised table names pt2

1 parent b8f5e3f1
Showing with 1 additions and 1 deletions
......@@ -557,7 +557,7 @@ module.exports = (function() {
// check if model provided is through table
if (!as && parentAssociation && parentAssociation.through && parentAssociation.through.model === model) {
association = {as: Utils.singularize(model.tableName, model.options.language)};
association = {as: model.name};
} else {
// find applicable association for linking parent to this model
association = parent.getAssociation(model, as);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!