diff --git a/lib/model-builder.js b/lib/model-builder.js index f243c1dd..09694ac2 100644 --- a/lib/model-builder.js +++ b/lib/model-builder.js @@ -720,7 +720,7 @@ ModelBuilder.prototype.buildModels = function (schemas, createModel) { } var relations = []; - for (var s in schemas) { + for (var s = 0, n = schemas.length; s < n; s++) { var name = this.getSchemaName(schemas[s].name); schemas[s].name = name; var model;