mapper/query .options() fails when called on an inheriting mapper

Issue #309 resolved
Mike Bayer repo owner created an issue

if mapper A inherits from mapper B, and mapper B contains a property C, calling:

session.query(A).options(lazyload('C')).select()

fails to apply the option to the property 'C', since the mapperoptions logic fails to take inheriting mappers into account.

Comments (2)

  1. Log in to comment