This commit is contained in:
welefen 2014-01-08 23:15:40 +08:00
parent 39b339aed7
commit b87677e1b6

View File

@ -357,7 +357,7 @@ var Model = module.exports = Class(function(){
if (options.alias) {
options.table += " " + options.alias;
};
options.modal = this.name;
options.model = this.name;
return promise.then(function(fields){
// 字段类型验证
if (options.where && isObject(options.where) && !isEmpty(fields)) {