Given this:

class A(object):
    pass

class B(object):
    pass

class B1(B):
    pass

mb = mapper(B, tableB, polymorphic_on=tableB.c.typ)

mb1 = mapper(B1, inherits=mb, polymorphic_identity="abc")

ma = mapper(A, tableA,
          properties = {'mybee': relation(B1, lazy=False) }
         )


Shouldn't a query like

  S.query(A).list()

issue SQL that restricts the resulting join to where tableB.c.typ = "abc" ?

or is it necessary to re-specify that
polymorphic type condition in the relation for 'mybee'?

Thanks,
Rick

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to