Signed-off-by: Clark Wang <clark.wangs@gmail.com>
This commit is contained in:
Clark Wang 2015-06-01 11:28:58 +08:00
parent 8cf899d1b5
commit a283922c28
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ ModelBaseClass.prototype._initProperties = function (data, options) {
if (ctor.relations[p].options.embedsProperties) {
var fields = fieldsToArray(ctor.relations[p].properties,
modelTo.definition.properties, modelTo.setting.strict);
modelTo.definition.properties, modelTo.settings.strict);
if (!~fields.indexOf(ctor.relations[p].keyTo)) {
fields.push(ctor.relations[p].keyTo);
}