Destroying nested forms #63
Answered
by
santib
andrewr224
asked this question in
Q&A
-
How do you destroy nested models with yaaf? |
Beta Was this translation helpful? Give feedback.
Answered by
santib
Dec 22, 2021
Replies: 1 comment 1 reply
-
Hi @andrewr224, sorry for the late response. Currently, we don't have that feature. Thinking on the possibilities to implement it, I'm not sure what would be best:
Thoughts? cc @juanmanuelramallo |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
andrewr224
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @andrewr224, sorry for the late response. Currently, we don't have that feature. Thinking on the possibilities to implement it, I'm not sure what would be best:
save
method smarter by using mark_for_destruction and the marked models gets deleted upon save.. The good thing is that it will allow creating + updating + deleting as part of the same formYAAF::Form
have adestroy
method which destroys everything in the@models
arrayYAAF::DestroyForm
whichsave
method destroys everything in the@models
arrayThoughts? cc @juanmanuelramallo