Re: [sqlalchemy] inspecting attribute_mapped_collection info of RelationshipProperty?

2017-02-22 Thread mike bayer
On 02/22/2017 08:56 PM, YKdvd wrote: Let's say I have a model class Child, with an Integer column "birthOrder" and text column "birthSign", and a class Parent which has "children = relationship('Child', collection_class=attribute_mapped_collection('birthOrder'))". This gives Parent a

[sqlalchemy] inspecting attribute_mapped_collection info of RelationshipProperty?

2017-02-22 Thread YKdvd
Let's say I have a model class Child, with an Integer column "birthOrder" and text column "birthSign", and a class Parent which has "children = relationship('Child', collection_class=attribute_mapped_collection('birthOrder'))". This gives Parent a dictionary "children", keyed by the birth