-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
Guys I really hope I am wrong, but i think we are not applying entity builders on setter, but only on entity construction ..
Is this the expected behaviour ? or it is a bug ?
@albertossilva could you please check, i have a fix for it, like this :
set: function (value){
if (instance.schema[field].type || instance.schema[field].builder) {
value = instance.applyEntityConstructor(instance.schema[field], value);
}
if(instance.data[field] !== value) {
instance.data[field] = value;
return instance._validate();
}
},should I submit the PR ?