In my component, I have 3 tables, 2 object tables (Course and Module), and 1 linking table (Course_Modules).
In my edit form for courses I have a multi-select allowing users to pick 1 or more modules that are part of a course.
When this is saved, I need to add linking records with the
moduleId to Course_modules.
However, I don't want to do this if the
save fails - only if the course record saved correctly.
There seems to be innumerable places to make this happen (JTable save(), JControllerForm save(), JTable bind(), JTable store(), in the model), but I'd like it only to happen if the main save succeeded. Does anyone have guidance on how best to do this?