]> 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:25:33 +0000 (16:25 -0500)
commit20e14633fb15018ccf1f5d127fd67609bfe2b3e5
treeae05d084bd39b1020eaabd2a8a4c8da868cda6a5
parentd8ac1e9e6bfc931d2f14f9846d6924106f56b7e6
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
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