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

Commit 67b0f76b by Jesse Clark

Set association tableName to options.joinTableName even if options.tableName was inherited

1 parent 2a25f661
Showing with 1 additions and 0 deletions
...@@ -19,6 +19,7 @@ module.exports = (function() { ...@@ -19,6 +19,7 @@ module.exports = (function() {
this.isSelfAssociation ? (this.options.as || this.target.tableName) : this.target.tableName this.isSelfAssociation ? (this.options.as || this.target.tableName) : this.target.tableName
) )
this.associationAccessor = this.combinedName = (this.options.joinTableName || combinedTableName) this.associationAccessor = this.combinedName = (this.options.joinTableName || combinedTableName)
this.options.tableName = this.combinedName
var as = (this.options.as || Utils.pluralize(this.target.tableName)) var as = (this.options.as || Utils.pluralize(this.target.tableName))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!