On May 18, 2009, at 8:51 AM, fleong wrote:
> t = Table1() > t.id = 0 > > tex = TableEx22() > tex.id = 0 > > s.add(t) > s.add(tex) > s.commit() > > t21 = Table21() > t21.id2 = 0 > t21.t1 = t > s.add(t21) > s.commit() > > t22 = Table22() > t22.id2 = 1 > t22.t1 = t > t22.tex = tex > s.add(t22) > s.commit() > > for i in tex.t22: > print type(i) > >>> [0] > <class '__main__.Table21'> > <class '__main__.Table22'> TableEx22.t22, despite the name, references the Table2 class. You probably want that to reference Table22. the result is still strange, but this whole program contains typos and doesn't even run when they are corrected, so for further help you'd have to post the actual test case. --~--~---------~--~----~------------~-------~--~----~ 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 sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---