summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2017-05-10 20:26:30 -0400
committerGerrit Code Review <gerrit@awstats.zzzcomputing.com>2017-05-10 20:26:30 -0400
commit159f5951178e4d745ac903a78f69cc7df6182757 (patch)
treeaabec5b077d0d62beb76432cefe14bc94fd38257 /lib/sqlalchemy
parent7455e7eba903c2df4caf61c4857310f9f0d7cb64 (diff)
parent6194483b73c94565aee62c5867a251a1841db5a9 (diff)
downloadsqlalchemy-159f5951178e4d745ac903a78f69cc7df6182757.tar.gz
Merge "Update inheritance documentation."
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/orm/util.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/sqlalchemy/orm/util.py b/lib/sqlalchemy/orm/util.py
index 2e61661ed..5bcb28f31 100644
--- a/lib/sqlalchemy/orm/util.py
+++ b/lib/sqlalchemy/orm/util.py
@@ -694,18 +694,16 @@ def with_polymorphic(base, classes, selectable=False,
"""Produce an :class:`.AliasedClass` construct which specifies
columns for descendant mappers of the given base.
- .. versionadded:: 0.8
- :func:`.orm.with_polymorphic` is in addition to the existing
- :class:`.Query` method :meth:`.Query.with_polymorphic`,
- which has the same purpose but is not as flexible in its usage.
-
Using this method will ensure that each descendant mapper's
tables are included in the FROM clause, and will allow filter()
criterion to be used against those tables. The resulting
instances will also have those columns already loaded so that
no "post fetch" of those columns will be required.
- See the examples at :ref:`with_polymorphic`.
+ .. seealso::
+
+ :ref:`with_polymorphic` - full discussion of
+ :func:`.orm.with_polymorphic`.
:param base: Base class to be aliased.