summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-09-15 11:17:13 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2015-09-15 11:17:13 -0400
commit7eb34baf99179eec966ddd8b3607a6d8cfdfba21 (patch)
treed26187c49e9f880620cd6d4a70d9019f3edc3153
parentfe41e39b9b776c18a03dde0540a45e1f0100d44b (diff)
downloadsqlalchemy-7eb34baf99179eec966ddd8b3607a6d8cfdfba21.tar.gz
- fix incorrect example in inheritance docs
-rw-r--r--doc/build/orm/inheritance.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/build/orm/inheritance.rst b/doc/build/orm/inheritance.rst
index 0713634bc..290d8099e 100644
--- a/doc/build/orm/inheritance.rst
+++ b/doc/build/orm/inheritance.rst
@@ -228,9 +228,9 @@ subclasses:
entity = with_polymorphic(Employee, [Engineer, Manager])
# join to all subclass tables
- entity = query.with_polymorphic(Employee, '*')
+ entity = with_polymorphic(Employee, '*')
- # use with Query
+ # use the 'entity' with a Query object
session.query(entity).all()
It also accepts a third argument ``selectable`` which replaces the automatic
@@ -249,7 +249,7 @@ should be used to load polymorphically::
employee.outerjoin(manager).outerjoin(engineer)
)
- # use with Query
+ # use the 'entity' with a Query object
session.query(entity).all()
Note that if you only need to load a single subtype, such as just the