Is it possible to save a resource in 3 tables with nested relationships?
Hello, I want to make a form for a wine preference quiz with this flow:
- Question (text input) - saved with "Quiz " model
- Answers (a repeater) - saved with "QuizAnswer" model
- for each element from repeater I have an text field answer
- and a multiple select field which should save the related wines to that question using QuizAnswerWine model.
this is my code, everything works good, only the last relationship with the related answer wines doesn't work, the save in DB it's not working, I have the wines in select.
0 Replies