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

Cloning of HABTM associated records #78

Open
varg90 opened this issue Jun 13, 2017 · 1 comment
Open

Cloning of HABTM associated records #78

varg90 opened this issue Jun 13, 2017 · 1 comment

Comments

@varg90
Copy link

varg90 commented Jun 13, 2017

I have a case when the main record (A) has many records of the first type (B) and the second (C)
B associated with C with has_many through. But it's not necessary that C has any of B and vice versa.
I tried different ways to setup amoeba in the models, but I didn't get what I need:
Clone A with associated B and C. And, which is important, new C object should be associated with new B object. I got new C object associated with the old B object

How should I setup amoeba in my models to get the whole A object cloned to new one without any association with the previous (cloned) object?

@kshetri-sagar
Copy link

same issue I have got, was this solved?

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