Hi, I'm using the following (as discussed in another post) :
p1 = aliased(Project) when using it in a filter : query = session.query(Task).with_polymorphic([Invoice, Estimation]).outerjoin(p1, Invoice.project).outerjoin(p2, Estimation.project) query = query.filter(p1.company_id==cid) I get the following error AttributeError: company_id Since the Project class has a company_id Column defined in it, I was expecting I could access it in p1 as well. Did I misunderstood something ? Regards Gaston -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.