]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- the "polymorphic_primaryjoin" again goes against the parent's non-polymorphic local...
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 1 Feb 2007 03:18:08 +0000 (03:18 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 1 Feb 2007 03:18:08 +0000 (03:18 +0000)
commit154a831822c21ade7ff445381b1cacceb717e1e8
tree3bc40484ca45356317522fa1a7360e2911066131
parent72f479b324c0b62a19e58c7b173a62b55c34a928
- the "polymorphic_primaryjoin" again goes against the parent's non-polymorphic local table.
lazy load clause evaluation is plenty solid enough to handle it this time.
- the join_to() method on PropertyLoader takes the parent mapper as an argument and alisiazes
the primaryjoin against that mapper's selectable, so that the same primary join can be used against
the base mapper, any inheriting mapper, etc., whether or not it uses a polymorphic union (although
needs to be tested against alternate polymorphic unions added on subclasses).  fixes [ticket:448]
CHANGES
lib/sqlalchemy/ext/selectresults.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/strategies.py
test/orm/inheritance5.py