Re: [sqlalchemy] How to implement a multi-level single table polymorphism using sqlalchemy?

2018-11-07 Thread Mike Bayer
Multi-level polymorphism is not supported. See https://bitbucket.org/zzzeek/sqlalchemy/issues/2555/cascading-polymorphic-ons which includes an example of how to get multi-level polymorphic by using a single polymorphic_on value, using COALESCE. On Wed, Nov 7, 2018 at 4:45 AM wrote: > > Hi all > >

[sqlalchemy] How to implement a multi-level single table polymorphism using sqlalchemy?

2018-11-07 Thread ai . research . ir
Hi all I have a phone table in MySQL which has morphology based on its two columns, "is_deleted" and "is_active" If "is_deleted" column is 1, then we don't care about "is_active" column. If "is_deleted" column is 0, it means that the phone exists and can be either active or inactive based on "i