I've hit a problem where eagerload() fails to load in a relation of a relation when lazy='joined' is involved. It's easiest just to show the test. It fails in 0.7.1, and an equivalent test also fails in 0.6.8.
http://pastebin.com/ruq6SM1z Basically, A has relations to B, C, and D. C's relationship to A is a lazy='joined'. First load A, eagerloading 'd_row' Then reference A.c_row, causing it to load C. Then, separately, load C, eagerloading 'a_row.b_row'. At this point, I expunge_all() and demonstrate that b_row was not attached to C.a_row. This does not occur if C's relationship to A is lazy='select'. Weirdly, this also does not occur if the initial load of A does not eagerload 'd_row'. I'm not sure why that should affect anything. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" 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/sqlalchemy?hl=en.
