Re: [Sqlalchemy-users] Inheritance Problem

2006-04-13 Thread Michael Bayer
hmmm, im not seeing that behavior. when I do it like this: p = Person() p.key = 'default' pr = Prefs() pr.email = '[EMAIL PROTECTED]' p.Prefs = pr objectstore.flush() objectstore.clear() p = Person.mapper.get('default') print p.key print p.Prefs.person i get these queries (sqlite): INSERT INTO

[Sqlalchemy-users] Inheritance Problem

2006-04-12 Thread Dimi Shahbaz
I'm having trouble with inheritance. I think I've followed the examples/polymorph2.py paradigm, but I'm still getting issues. Here is my boiled-down test case: people = Table("people", pg_engine, Column('key', String, primary_key=True), Column('firstname', String), Column('lastname'