Hello,

I have the following mappers:

orm.mapper(Content, table.content,
  polymorphic_on = table.content.c.content_type_id,
  ...)
        
orm.mapper(News, table.news, inherits = Content,
  polymorphic_on = table.content.c.content_type_id)

orm.mapper(PlatformNews, table.platform_news, inherits = News,
  polymorphic_identity = _get_type_id('platform news'))

When I do:

Content.query.with_polymorphic([PlatformNews])

SQLAlchemy forgot to add a JOIN for the news (News) table (because there is more than one level of inheritance I guess), I wondered if there was a way to do that automatically ?

Thanks,
Julien

--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

<<attachment: jcigar.vcf>>

Reply via email to