Say we have a 'People' table that contains 'HomeAddressID' and 'WorkAddressID' columns.
We are defining a multiple join paths relationship to table 'Addresses' like this:
HomeAddress = relationship('Addresses', foreign-keys=[HomeAddressID])
WorkAddress = relationship('Addresses', foreign-keys=[WorkAddressID])
Now I want my class 'Addresses' to have an attribute 'People' that will list all people who are related to this address, regardless whether its home or work.
How can I do this?