]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix some more typos
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 20 Jul 2011 23:42:06 +0000 (19:42 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 20 Jul 2011 23:42:06 +0000 (19:42 -0400)
doc/build/orm/loading.rst
doc/build/orm/tutorial.rst
lib/sqlalchemy/orm/query.py

index 084cd4051bb7d88106854b8d577e2c610bcf1e80..3b3d1ff0751d1786492f5a261574b346c1234ca8 100644 (file)
@@ -259,9 +259,10 @@ The other LEFT OUTER JOIN will match *all* ``Address`` rows related to ``User``,
 and is only used to populate the ``User.addresses`` collection, for those ``User`` objects
 that are returned.
 
-By changing the usage of ``joinedload`` to another style of loading, we can change
+By changing the usage of :func:`.joinedload` to another style of loading, we can change
 how the collection is loaded completely independently of SQL used to retrieve
-the actual ``User`` rows we want:
+the actual ``User`` rows we want.  Below we change :func:`.joinedload` into
+:func:`.subqueryload`:
 
 .. sourcecode:: python+sql
 
index 177f7a4c6a89cd29a0f62a6e09027c25b0eaf197..410e1a0692ed6a3b1004bbe59e3fd7cb198c3d0b 100644 (file)
@@ -1080,7 +1080,8 @@ load in the next section.
 Querying with Joins
 ====================
 
-While :func:`~sqlalchemy.orm.joinedload` created a JOIN specifically to
+While :func:`~sqlalchemy.orm.joinedload` created an anonymous, non-accessible JOIN 
+specifically to
 populate a collection, we can also work explicitly with joins in many ways.
 For example, to construct a simple inner join between ``User`` and
 ``Address``, we can just :meth:`~sqlalchemy.orm.query.Query.filter()` their
index 1b6b8986cc26fc6977e1e12002325a8f44ad5798..701b376af90779193b557f182568735d558986bd 100644 (file)
@@ -1241,7 +1241,7 @@ class Query(object):
             # join from Company entities to the "employees" collection,
             # using "people JOIN engineers" as the target.  Then join
             # to the "computers" collection on the Engineer entity.
-            session.query(Company).\
+            session.query(Company).\\
                         join(people.join(engineers), 'employees').\\
                         join(Engineer.computers)
 
@@ -1275,7 +1275,9 @@ class Query(object):
                 query.join(a).\\
                         join(b, from_joinpoint=True).\\
                         join(c, from_joinpoint=True)
-
+        
+        See also :ref:`ormtutorial_joins` in the ORM tutorial.
+        
         """
         aliased, from_joinpoint = kwargs.pop('aliased', False),\
                                     kwargs.pop('from_joinpoint', False)