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

Commit 6a1e4a9b by sdepold

formatting

1 parent 0066c68a
Showing with 3 additions and 1 deletions
......@@ -53,7 +53,9 @@ module.exports = (function() {
combinedTableAttributes[this.foreignIdentifier] = {type:DataTypes.INTEGER, primaryKey: true}
this.connectorDAO = this.source.daoFactoryManager.sequelize.define(this.combinedName, combinedTableAttributes, this.options)
if(!this.isSelfAssociation) this.target.associations[this.associationAccessor].connectorDAO = this.connectorDAO
if(!this.isSelfAssociation) {
this.target.associations[this.associationAccessor].connectorDAO = this.connectorDAO
}
if(this.options.syncOnAssociation) {
this.connectorDAO.sync()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!