diff --git a/src/db/ModelComponent.ts b/src/db/ModelComponent.ts index 1784136..7983749 100644 --- a/src/db/ModelComponent.ts +++ b/src/db/ModelComponent.ts @@ -21,6 +21,7 @@ export default abstract class ModelComponent { for (const property of this._properties) { if (!property.startsWith('_')) { model[property] = this[property]; + model['_validators'][property] = this._validators[property] as Validator | undefined; } }