diff options
author | Jeffrey Finkelstein <jeffrey.finkelstein@gmail.com> | 2016-05-03 20:46:20 -0400 |
---|---|---|
committer | Jeffrey Finkelstein <jeffrey.finkelstein@gmail.com> | 2016-05-03 20:46:20 -0400 |
commit | e6251c3e40e623aaadc7356c0b3c94101710079c (patch) | |
tree | 17916801a867be8f03063009adfdc0ea32017baa /lib/sqlalchemy | |
parent | 9a3c9ba7beb18dfd6232deb895528ea8593a12b0 (diff) | |
download | sqlalchemy-pr/267.tar.gz |
Corrects some references in ORM documentation.pr/267
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r-- | lib/sqlalchemy/orm/mapper.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py index 06d903e9c..858c35344 100644 --- a/lib/sqlalchemy/orm/mapper.py +++ b/lib/sqlalchemy/orm/mapper.py @@ -2121,7 +2121,7 @@ class Mapper(InspectionAttr): .. warning:: - the :attr:`.Mapper.relationships` accessor namespace is an + The :attr:`.Mapper.attrs` accessor namespace is an instance of :class:`.OrderedProperties`. This is a dictionary-like object which includes a small number of named methods such as :meth:`.OrderedProperties.items` @@ -2167,14 +2167,15 @@ class Mapper(InspectionAttr): .. warning:: - the :attr:`.Mapper.relationships` accessor namespace is an + The :attr:`.Mapper.all_orm_descriptors` accessor namespace is an instance of :class:`.OrderedProperties`. This is a dictionary-like object which includes a small number of named methods such as :meth:`.OrderedProperties.items` and :meth:`.OrderedProperties.values`. When accessing attributes dynamically, favor using the dict-access - scheme, e.g. ``mapper.attrs[somename]`` over - ``getattr(mapper.attrs, somename)`` to avoid name collisions. + scheme, e.g. ``mapper.all_orm_descriptors[somename]`` over + ``getattr(mapper.all_orm_descriptors, somename)`` to avoid name + collisions. .. versionadded:: 0.8.0 @@ -2214,8 +2215,8 @@ class Mapper(InspectionAttr): @_memoized_configured_property def relationships(self): - """Return a namespace of all :class:`.RelationshipProperty` - properties maintained by this :class:`.Mapper`. + """A namespace of all :class:`.RelationshipProperty` properties + maintained by this :class:`.Mapper`. .. warning:: @@ -2225,8 +2226,9 @@ class Mapper(InspectionAttr): named methods such as :meth:`.OrderedProperties.items` and :meth:`.OrderedProperties.values`. When accessing attributes dynamically, favor using the dict-access - scheme, e.g. ``mapper.attrs[somename]`` over - ``getattr(mapper.attrs, somename)`` to avoid name collisions. + scheme, e.g. ``mapper.relationships[somename]`` over + ``getattr(mapper.relationships, somename)`` to avoid name + collisions. .. seealso:: |