From 71a52b4b5001143c017cee5df4f32319eb813674 Mon Sep 17 00:00:00 2001 From: Anatoliy Chakkaev Date: Sun, 11 Dec 2011 15:26:24 +0400 Subject: [PATCH] Fix non-schema data saving --- lib/abstract-class.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/abstract-class.js b/lib/abstract-class.js index e231482a..602966dc 100644 --- a/lib/abstract-class.js +++ b/lib/abstract-class.js @@ -110,6 +110,7 @@ AbstractClass.create = function (data) { create(); } else { obj = new this(data); + data = obj.toObject(true); // validation required obj.isValid(function (valid) {