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

You need to sign in or sign up before continuing.
Commit 75a1e3b8 by Overlook Motel

Fix wrong identifier pt 2

1 parent fe90a98a
Showing with 5 additions and 1 deletions
......@@ -178,7 +178,11 @@ module.exports = (function() {
this.foreignIdentifier = Utils._.camelizeIf(
[Utils.singularize(this.as, this.source.options.language), this.source.primaryKeyAttribute].join("_"),
!this.source.options.underscored
);
)
if (doubleLinked) {
this.targetAssociation.identifier = this.foreignIdentifier
}
}
// remove any PKs previously defined by sequelize
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!