]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add clause adaptation for AliasedClass to with_parent()
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 22 May 2017 19:08:10 +0000 (15:08 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 23 May 2017 15:13:18 +0000 (11:13 -0400)
commit1c692f019b16ff4f3eb17ea8d09731837cc3be76
tree9829896302c427fe2751ebc862640578a3f882dc
parenteed7888f85a4255390e2522dbd428cbfe7a08bab
Add clause adaptation for AliasedClass to with_parent()

Fixed bug where :meth:`.Query.with_parent` would not work if the
:class:`.Query` were against an :func:`.aliased` construct rather than
a regular mapped class.  Also adds a new parameter
:paramref:`.util.with_parent.from_entity` to the standalone
:func:`.util.with_parent` function as well as
:meth:`.Query.with_parent`.

Change-Id: Ic684dd63cc90b582c7580c9bba3c92fa3f286da7
Fixes: #3607
doc/build/changelog/changelog_12.rst
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/relationships.py
lib/sqlalchemy/orm/util.py
test/orm/test_query.py