diff --git a/lib/schema.js b/lib/schema.js index d2e8143c..866b98a9 100644 --- a/lib/schema.js +++ b/lib/schema.js @@ -183,7 +183,7 @@ Schema.prototype.define = function defineClass(className, properties, settings) return new ModelConstructor(data); } AbstractClass.call(this, data); - this.schema = schema || this.constructor.schema; + hiddenProperty(this, 'schema', schema || this.constructor.schema); }; hiddenProperty(NewClass, 'schema', schema);