example fix: Advanced Data Mapping - Mapping a Class with Table Inheritance

Issue #39 resolved
Former user created an issue

I've found an issue with the following documentation section: Advanced Data Mapping - Mapping a Class with Table Inheritance

AddressUser.mapper = mapper( addresses, inherits=User.mapper )

should probably be:

AddressUser.mapper = mapper(AddressUser, addresses, inherits=User.mapper )

Additionally, the lower definition specifying the join condition should be:

AddressUser.mapper = mapper(AddressUser, addresses, inherits=User.mapper, inherit_condition=users.c.user_id==addresses.c.user_id )

Comments (1)

  1. Log in to comment