I want to clone a parent model that has relations like these:
relation_1 => hasMany
relation_2 => hasMany
relation_3 => hasMany
The relation_3 itself has polymorphic relation with relation_1 or relation_2.
So if I tell the cloner to clone the parent model with all relations, the cloned relation_3 has a polymorphic connection with the old one.
Also, if we add it to the cloneable_relations attribute, it cloned a new model, while it should just update relation with the cloned model that created when we cloned parent relations.
I want to clone a parent model that has relations like these:
relation_1=> hasManyrelation_2=> hasManyrelation_3=> hasManyThe
relation_3itself has polymorphic relation withrelation_1orrelation_2.So if I tell the cloner to clone the parent model with all relations, the cloned
relation_3has a polymorphic connection with the old one.Also, if we add it to the
cloneable_relationsattribute, it cloned a new model, while it should just update relation with the cloned model that created when we cloned parent relations.