diff --git a/lib/dao.js b/lib/dao.js index 3444fc5f..a4d12867 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -21,7 +21,7 @@ var setScopeValuesFromWhere = utils.setScopeValuesFromWhere; var mergeQuery = utils.mergeQuery; var util = require('util'); var assert = require('assert'); -var Model = require('./model'); +var BaseModel = require('./model'); /** * Base class for all persistent objects. @@ -594,7 +594,7 @@ DataAccessObject._coerce = function (where) { continue; } - if (DataType.prototype instanceof Model) { + if (DataType.prototype instanceof BaseModel) { continue; }