diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-08-07 09:59:59 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-08-07 09:59:59 -0400 |
| commit | b35e6c69b726d445a2d51fc3433ff3f97a04ed38 (patch) | |
| tree | 253f5c8005f5ee786f8a4751bfa1541e0b399720 | |
| parent | a3761896fa3ee2d0c104712dab7b8b21dbdb277e (diff) | |
| download | sqlalchemy-b35e6c69b726d445a2d51fc3433ff3f97a04ed38.tar.gz | |
- clarify docs that contains_eager() is included in the of_type() system,
fix #2438
| -rw-r--r-- | doc/build/orm/inheritance.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/build/orm/inheritance.rst b/doc/build/orm/inheritance.rst index 623892b33..642f3420c 100644 --- a/doc/build/orm/inheritance.rst +++ b/doc/build/orm/inheritance.rst @@ -472,7 +472,8 @@ subselect back to the parent ``companies`` table. Eager Loading of Specific or Polymorphic Subtypes ++++++++++++++++++++++++++++++++++++++++++++++++++ -The :func:`.joinedload` and :func:`.subqueryload` options also support +The :func:`.joinedload`, :func:`.subqueryload`, :func:`.contains_eager` and +other loading-related options also support paths which make use of :func:`~sqlalchemy.orm.interfaces.PropComparator.of_type`. Below we load ``Company`` rows while eagerly loading related ``Engineer`` objects, querying the ``employee`` and ``engineer`` tables simultaneously:: @@ -500,11 +501,13 @@ can be loaded:: ) .. versionadded:: 0.8 - :func:`.joinedload` and :func:`.subqueryload` support + :func:`.joinedload`, :func:`.subqueryload`, :func:`.contains_eager` + and related loader options support paths that are qualified with :func:`~sqlalchemy.orm.interfaces.PropComparator.of_type`, supporting single target types as well as :func:`.orm.with_polymorphic` targets. + Single Table Inheritance ------------------------ |
