> im playing with some code to do this automatically, but looking > back at sa_ref_A_B_A_all.py, change your primaryjoins to: > > mapper_A/link1: > primaryjoin= table_A.c.link1_id==(Alink=='A' and (poly and Ajoin or > table_A) or table_B).c.id, > > mapper_B/link2: > primaryjoin= table_B.c.link2_id==(Blink=='A' and (poly and Ajoin or > table_A) or table_B).c.id, > > i.e. when using a polymorphic union to select, make the primary > join go from the parent table to the child "selectable", instead of > a table deep inside the child "selectable" (the "selectable" is the > polymorphic union). then I get no failures outside of the > "concrete" test cases. okay, and if u do same thing to the relink-ed concrete relation (mapper_B/link1), THEN ALL WORKS! hoooraaaa... time for something small. ciao svild
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---