On Apr 9, 2013, at 10:27 AM, Werner <werner.bru...@sfr.fr> wrote: > Hi Michael, > > Didn't see this one before my last post. > > On 09/04/2013 16:19, Michael Bayer wrote: >> 1. is Winracku.combrack intended to be many-to-one or one-to-many ? > One to many, in other words just to make sure that I don't mess up > terminology, "w1" can have many children but the children only have one > parent. >> 2. Given w1, w2: >> >> w1 = Winracku() >> w2 = Winracku() >> w1.combrack = w2 >> >> which one are you deleting first, and what is the desired behavior as a >> result? > > w1 = Winracku() > w2 = Winracku() > w3 = Winracku() > w1.combrack.append(w2) > w1.combrack.append(w2) > > delete w1, currently I don't allow deletion of "w2" or "w3"
so remove the "delete, delete-orphan" cascade, deleting "w1" should apply NULL to the foreign keys of w2, w3. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy?hl=en. For more options, visit https://groups.google.com/groups/opt_out.