]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ensure the "orm" plugin is used unconditionally for bundles
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 16 Nov 2020 15:15:17 +0000 (10:15 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 16 Nov 2020 15:45:07 +0000 (10:45 -0500)
commit218fc83f3997dc0c152278eea0740b088074784b
tree11d63c757b7edf00160a4043af0b8f0d9fb466cf
parent44a656a24242e160d5da3b45f4f65d2b2471912a
Ensure the "orm" plugin is used unconditionally for bundles

This also introduces that the "orm" plugin may be used
when the plugin_subject is None.

Fixed regression where the :paramref:`.Bundle.single_entity` flag would
take effect for a :class:`.Bundle` even though it were not set.
Additionally, this flag is legacy as it only makes sense for the
:class:`_orm.Query` object and not 2.0 style execution.  a deprecation
warning is emitted when used with new-style execution.

Fixes: #5702
Change-Id: If9f43365b9d966cb398890aeba2efa555658a7e5
doc/build/changelog/unreleased_14/5702.rst [new file with mode: 0644]
lib/sqlalchemy/orm/context.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/util.py
lib/sqlalchemy/sql/traversals.py
test/orm/test_bundle.py