I found a partial answer. First, it is mainly a problem with sqlalchemy, not Elixir.
The solution is to call: session.delete(b) # for each b. Then the intermediate table is correctly cleaned. On Sep 25, 11:19 pm, Adrien <[email protected]> wrote: [...] > I would like "__main___b_alist____main___a_blist" to be emptied either > when a1 or b1 is deleted. > -- You received this message because you are subscribed to the Google Groups "SQLElixir" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlelixir?hl=en.
