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

Commit 974dff97 by Sascha Depold

removed unused code

1 parent fcabb59e
Showing with 0 additions and 19 deletions
...@@ -44,25 +44,6 @@ exports.SequelizeTable = function(Sequelize, sequelize, tableName, attributes, o ...@@ -44,25 +44,6 @@ exports.SequelizeTable = function(Sequelize, sequelize, tableName, attributes, o
attributes: attributes, attributes: attributes,
tableName: tableName, tableName: tableName,
isAssociatedWith: function(anotherTable, associationType) {
var result = false
var associations = Sequelize.Helper.Array.select(table.associations, function(assoc) {
return assoc.table.tableName == anotherTable.tableName
})
if(associations.length > 0) {
if(associationType) result = (associations[0].type == associationType)
else result = true
}
return result
},
isCrossAssociatedWith: function(anotherTable) {
return table.isAssociatedWith(anotherTable, 'hasMany') && anotherTable.isAssociatedWith(table, 'hasMany')
},
prepareAssociations: function(callback) { prepareAssociations: function(callback) {
table.associations.forEach(function(association) { table.associations.forEach(function(association) {
switch(association.type) { switch(association.type) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!