[sqlalchemy] polymorphism where a child can have multiple values of polymorphic_id?

2010-11-21 Thread Eric Ongerth
I must be in a search blind spot, I'm having trouble finding references and examples for this pattern, though I feel certain I've seen examples around the sqlalchemy literature a couple of times before. I have a table of Companies, and then further tables of Manufacturer and Vendor info which

Re: [sqlalchemy] polymorphism where a child can have multiple values of polymorphic_id?

2010-11-21 Thread Michael Bayer
On Nov 21, 2010, at 4:41 PM, Eric Ongerth wrote: I must be in a search blind spot, I'm having trouble finding references and examples for this pattern, though I feel certain I've seen examples around the sqlalchemy literature a couple of times before. I have a table of Companies, and then

[sqlalchemy] Re: polymorphism where a child can have multiple values of polymorphic_id?

2010-11-21 Thread Eric Ongerth
Great, thanks for replying. His generic schema approach is essentially what I'm already doing for other more complex parts of my model. http://www.agiledata.org/essays/mappingObjects.html#MapToGenericStructure On just this Companies-Vendors-Manufacturers part, I was hoping to get away with