From 6560bf82f387ca53c79f91f93ae97e6594795da8 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 22 Apr 2017 16:43:31 -0400 Subject: [PATCH] - edits Change-Id: If2445c4cbcd7eb18e06823e8821940a391890979 --- doc/build/orm/loading_relationships.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/build/orm/loading_relationships.rst b/doc/build/orm/loading_relationships.rst index 1cebd46848..aaddb87f9b 100644 --- a/doc/build/orm/loading_relationships.rst +++ b/doc/build/orm/loading_relationships.rst @@ -69,12 +69,11 @@ at mapping time to take place in all cases where an object of the mapped type is loaded, in the absense of any query-level options that modify it. This is configured using the :paramref:`.relationship.lazy` parameter to :func:`.relationship`; common values for this parameter -include ``select``, ``joined``, and ``subquery``. +include ``"select"``, ``"joined"``, and ``"subquery"``. For example, to configure a relationship to use joined eager loading when the parent object is queried:: - # load the 'children' collection using LEFT OUTER JOIN class Parent(Base): __tablename__ = 'parent' @@ -87,7 +86,7 @@ rows fetched by adding a JOIN to the query for ``Parent`` objects. See :ref:`joined_eager_loading` for background on this style of loading. The default value of the :paramref:`.relationship.lazy` argument is -``select``, which indicates lazy loading. See :ref:`lazy_loading` for +``"select"``, which indicates lazy loading. See :ref:`lazy_loading` for further background. .. _relationship_loader_options: -- 2.47.2