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

Commit e92dd1e6 by Sascha Depold

has{One|Many}AndBelongsTo was correct imho

1 parent e18d6a8d
Showing with 2 additions and 2 deletions
......@@ -178,7 +178,7 @@ exports.SequelizeTable = function(Sequelize, sequelize, tableName, attributes, o
}
},
hasAndBelongsToMany: function(assocName, _table, backAssocName) {
hasManyAndBelongsTo: function(assocName, _table, backAssocName) {
var assoc = table.hasMany(assocName, _table)
_table.belongsTo(backAssocName || assocName, table, assoc)
},
......@@ -193,7 +193,7 @@ exports.SequelizeTable = function(Sequelize, sequelize, tableName, attributes, o
return association
},
hasAndBelongsToOne: function(assocName, _table, backAssocName) {
hasOneAndBelongsTo: function(assocName, _table, backAssocName) {
var assoc = table.hasOne(assocName, _table)
_table.belongsTo(backAssocName || assocName, table, assoc)
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!