Re: [sqlalchemy] Re: One to One relationship

2016-11-11 Thread Simon King
On Fri, Nov 11, 2016 at 6:59 AM, Alfred Soeng wrote: > It's the issue in the inheritance: > What I want to do is like this: > class Employee(Base): > __tablename__ = 'employee' > id = Column( > Integer, > primary_key=True, > ) > type_name =

[sqlalchemy] Re: One to One relationship

2016-11-10 Thread Alfred Soeng
It's the issue in the inheritance: What I want to do is like this: class Employee(Base): __tablename__ = 'employee' id = Column( Integer, primary_key=True, ) type_name = Column(DBT.STRING) __mapper_args__ = {'polymorphic_on': 'type_name'} class