Fix the ref to getSchemaType

This commit is contained in:
Raymond Feng 2013-07-11 16:04:28 -07:00
parent 194f68468a
commit aa5bba3bac
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ ModelBuilder.prototype.define = function defineClass(className, properties, sett
return s;
};
} else if(typeof DataType === 'string') {
DataType = getSchemaType(DataType);
DataType = schema.getSchemaType(DataType);
}
Object.defineProperty(ModelClass.prototype, attr, {