In the JavaScript grammar. After an instance of the @entity () modified new object, the attribute value of the instance can not be changed
TypeError: Cannot assign to read only property'type'of object'#<Banner>'
I try to add descriptor.writable = true in Column and so on.
function Column(typeOrOptions, options) {
return function(object, propertyName, descriptor) {
descriptor.writable = true;
};
}
Did I make a mistake?
In the JavaScript grammar. After an instance of the @entity () modified new object, the attribute value of the instance can not be changed
TypeError: Cannot assign to read only property'type'of object'#<Banner>'I try to add
descriptor.writable = truein Column and so on.Did I make a mistake?