Re: [sqlalchemy] Relationship between objects which inherit the same parent

2011-05-17 Thread Michael Bayer
On May 17, 2011, at 4:50 AM, roderick wrote: > Hi, > I have a problem with relationships between objects which inherit the > same parent: > > class Person(DeclarativeBase): >__tablename__ = 'person' >id = Column(Integer, primary_key=True) >name = Column(Unicode(100), nullable=False >

[sqlalchemy] Relationship between objects which inherit the same parent

2011-05-17 Thread roderick
Hi, I have a problem with relationships between objects which inherit the same parent: class Person(DeclarativeBase): __tablename__ = 'person' id = Column(Integer, primary_key=True) name = Column(Unicode(100), nullable=False def __init__(self, name): self.name = name clas