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

Nested relations #52

Open
Yanuschik opened this issue Jul 26, 2022 · 1 comment
Open

Nested relations #52

Yanuschik opened this issue Jul 26, 2022 · 1 comment

Comments

@Yanuschik
Copy link

How i can add nested relations in $cloneable_relations?

now i use this
protected $cloneable_relations = [ 'domains', 'technology_experience.technology.technology_category', 'technology_experience.category', 'projects', 'projects.roles', 'foreign_languages', 'certifications' ];

@emilsrits
Copy link

emilsrits commented Jul 30, 2022

If you add the Cloneable trait on the relation model you can chain the duplication further from there.

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

2 participants