fix typo
Signed-off-by: Clark Wang <clark.wangs@gmail.com>
This commit is contained in:
parent
8cf899d1b5
commit
a283922c28
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue