]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed 1.0 regression where the "parent entity" of a synonym-
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 27 Jun 2015 04:40:34 +0000 (00:40 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 27 Jun 2015 04:40:34 +0000 (00:40 -0400)
commitfcb7c784e9479b9bff7de20c41a05bc1aa550ffb
tree31069380bd348fce6b2b71d6e5330fe65f231e6f
parent012b3bd0b2a0e9cdfd11d797b6aa0053a13816b0
- Fixed 1.0 regression where the "parent entity" of a synonym-
mapped attribute on top of an :func:`.aliased` object would
resolve to the original mapper, not the :func:`.aliased`
version of it, thereby causing problems for a :class:`.Query`
that relies on this attribute (e.g. it's the only representative
attribute given in the constructor) to figure out the correct FROM
clause for the query.
fixes #3466
- apply consitency to ._parententity vs.
__clause_element__()._annotations['parententity']
in terms of aliased class, test it all.
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/__init__.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/util.py
test/orm/test_query.py
test/orm/test_utils.py