]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Adjust natural path to relationship's base mapper for aliased class also
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Jan 2020 17:41:22 +0000 (12:41 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 20 Jan 2020 21:26:48 +0000 (16:26 -0500)
commit2702eeffb98192de560c1845b5864dcda8c934fe
treeaa9077a8696f838762d0a59cce60982703673d91
parentf27792f8d12e6b355711d3b46c1eabab0e6f979b
Adjust natural path to relationship's base mapper for aliased class also

Fixed regression in loader options introduced in 1.3.0b3 via :ticket:`4468`
where the ability to create a loader option using
:meth:`.PropComparator.of_type` targeting an aliased entity that is an
inheriting subclass of the entity which the preceding relationship refers
to would fail to produce a matching path.   See also :ticket:`5082` fixed
in this same release which involves a similar kind of issue.

Fixes: #5107
Change-Id: I5c6717b925060c3f8da42190d1f00d05248befd8
(cherry picked from commit c9bf876d93b9389d6d3b619565f6da166bab5ec2)
doc/build/changelog/unreleased_13/5107.rst [new file with mode: 0644]
lib/sqlalchemy/orm/path_registry.py
test/orm/inheritance/test_relationship.py
test/orm/test_utils.py