Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with polymorphic relations #29

Open
Ahnify opened this issue Dec 19, 2019 · 0 comments
Open

Problem with polymorphic relations #29

Ahnify opened this issue Dec 19, 2019 · 0 comments

Comments

@Ahnify
Copy link

Ahnify commented Dec 19, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant