Re: [sqlalchemy] Missing synonyms with multi-inheritance

2018-10-20 Thread Derek Lambert
Thanks. I'll use cascading as a workaround for the time being. On Friday, October 19, 2018 at 3:55:37 PM UTC-5, Mike Bayer wrote: > > it's a recent regression as of 1.2.12: > > https://bitbucket.org/zzzeek/sqlalchemy/issues/4350/synonym-single-inheritance-mixins > > > will fix > > On Fri, Oct

Re: [sqlalchemy] Missing synonyms with multi-inheritance

2018-10-19 Thread Mike Bayer
it's a recent regression as of 1.2.12: https://bitbucket.org/zzzeek/sqlalchemy/issues/4350/synonym-single-inheritance-mixins will fix On Fri, Oct 19, 2018 at 4:38 PM Mike Bayer wrote: > > On Fri, Oct 19, 2018 at 2:30 PM Derek Lambert > wrote: > > > > I'm replying to my original post since

Re: [sqlalchemy] Missing synonyms with multi-inheritance

2018-10-19 Thread Mike Bayer
On Fri, Oct 19, 2018 at 2:30 PM Derek Lambert wrote: > > I'm replying to my original post since it's related. > > I'm still seeing missing synonyms on child classes when they are defined in a > mixin imported on a parent. > > > import sqlalchemy as sa > from sqlalchemy import orm > from

Re: [sqlalchemy] Missing synonyms with multi-inheritance

2018-10-19 Thread Derek Lambert
I'm replying to my original post since it's related. I'm still seeing missing synonyms on child classes when they are defined in a mixin imported on a parent. import sqlalchemy as sa from sqlalchemy import orm from sqlalchemy.ext.declarative import declarative_base, declared_attr Base =

Re: [sqlalchemy] Missing synonyms with multi-inheritance

2018-05-09 Thread Derek Lambert
That was my conclusion too after consulting the googles. I've done as you suggested and things are working as expected. Thanks! On Monday, April 30, 2018 at 4:26:02 PM UTC-5, Mike Bayer wrote: > > On Mon, Apr 30, 2018 at 4:18 PM, Derek Lambert > wrote: > >> > >>

Re: [sqlalchemy] Missing synonyms with multi-inheritance

2018-04-30 Thread Mike Bayer
On Mon, Apr 30, 2018 at 4:18 PM, Derek Lambert wrote: >> >> mmm what do you mean by "mixin" here, it looks like every class you >> have is mapped. >> > > They are mapped in the code, but that's only so I can query them. I > attempted to make LdapEntry and

Re: [sqlalchemy] Missing synonyms with multi-inheritance

2018-04-30 Thread Derek Lambert
> > > mmm what do you mean by "mixin" here, it looks like every class you > have is mapped. > > They are mapped in the code, but that's only so I can query them. I attempted to make LdapEntry and ActiveDirectoryEntry true mixin's by setting __abstract__ = True. > > this a heavy set of

Re: [sqlalchemy] Missing synonyms with multi-inheritance

2018-04-30 Thread Mike Bayer
On Mon, Apr 30, 2018 at 1:33 PM, Derek Lambert wrote: > I'm running into an issue in a hierarchy of single-table inheritance objects > with multiple inheritance. The objects represent users/groups/etc. from > various directories and applications. > > Retrieving the list

[sqlalchemy] Missing synonyms with multi-inheritance

2018-04-30 Thread Derek Lambert
I'm running into an issue in a hierarchy of single-table inheritance objects with multiple inheritance. The objects represent users/groups/etc. from various directories and applications. Retrieving the list of synonyms from an object at the bottom of the inheritance tree doesn't return the