Is there a delete_orphan cascade type option for manytomany? I have a manytomany relationship between two tables with association table. I want to delete a row in a table with everything related in the other table as well as entries in association table..
For instance, we have event table, people table and event-people table.. people can be in different events, and events can have more than one person. When I delete an event, all people in that event should be deleted as well, not just those association entries in the association table..
Thanks..
|