diff --git a/lib/model.js b/lib/model.js index d595988d..4fa08eda 100644 --- a/lib/model.js +++ b/lib/model.js @@ -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); }