We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 897e1ef commit da3597fCopy full SHA for da3597f
src/Calliope/Model.ts
@@ -108,9 +108,9 @@ export default class Model extends SoftDeletes implements HasFactory {
108
109
// attributes
110
clone.original = this.getRawOriginal();
111
- clone.fillableAttributes = this.fillableAttributes;
112
- clone.guardedAttributes = this.guardedAttributes;
113
- clone.attributeCasts = this.attributeCasts;
+ clone.fillableAttributes = cloneDeep(this.fillableAttributes);
+ clone.guardedAttributes = cloneDeep(this.guardedAttributes);
+ clone.attributeCasts = cloneDeep(this.attributeCasts);
114
115
// miscellaneous
116
clone.hasOneOrManyParentKeyName = this.hasOneOrManyParentKeyName;
0 commit comments