I'll set up the scenario. I built a survey123 form using connect that collects school bus accident data. Accidents have a 1 to many relationship. Since a bus can hit multiple vehicles, the form is set up as a repeat in the form. The main form table is called accident and the bus specific data on a repeat is called rptBus. The accident table has the parent ID and rptBus table has the childID.
I had a situation where a user submitted a form, but then modified the submitted record. Because the settings weren't correct, when they corrected data it put a duplicate bus record in the rptBus table. No big deal I thought, I'll just delete that row. However, it deleted the parent row from the accident table. I was NOT expecting that behavior.
My question is, can I stop cascading deletes from the child table (rptBus) to the parent table (accident)? I want cascading deletes from the primary accident table to delete to the child table, but NOT the other way around.