Instead of setters returning the class name, use this so that the class can be extended. To support this, switch setters from calling new ClassName to using this.clone.
I'm not sure about whether extending model classes will let users sleep well at night, but this change itself doesn't seem harmful.
Instead of setters returning the class name, use
this
so that the class can be extended. To support this, switch setters from callingnew ClassName
to usingthis.clone
.I'm not sure about whether extending model classes will let users sleep well at night, but this change itself doesn't seem harmful.