1👍
✅
Say you have a book with mulitple authors, You want to save multiple authors to same book object, if that is the case when user adds the author save the author object and use jquery to save the newly created author object id in a hidden field ( create a hidden input tag with author id) and when user saves the book retrieve all the hidden author ids and save the book with the authors.
👤loki
Source:stackexchange.com