Cannot use a "join_to" on a SelectResults on a property of a mapper that use a polymorphic_union

Issue #441 resolved
Former user created an issue

Summary is clear I guess, but the Traceback that generates the file I will attach is even more clear.

File that will be attached is derived from the one I attached to #439

Good luck zzzeek and keep up your good work :)

Comments (4)

  1. Mike Bayer repo owner

    hmmm looks like im really going to have to work out having a distinct "polymorphic_primaryjoin" field on the relationships so that Query/SelectResults/etc. can make proper usage of it. this is again because i changed how the "primaryjoin" condition is determined. so this means i move the ad-hoc "aliasing" step in LazyLoader/EagerLoader into something more "official". this will be pretty good once it all works.

  2. Mike Bayer repo owner

    uh yeah this never worked. i have to crack open a new branch for this one, as the way relationships work has to be heavily refactored to integrate polymorphic concepts completely.

  3. Mike Bayer repo owner

    going to mark this as fixed as of changeset:2270 where ive checked in the relations refactoring. however more testing is needed for SelectResults/join_to/etc. specifically.

  4. Log in to comment