diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-02-16 12:43:46 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-02-16 12:43:46 -0500 |
commit | 9d5188b1926dad9e3a8d4f6e5eb8e0562956f1f0 (patch) | |
tree | ce87cbfa4f8f2e9409d1cba8342a5ab3f9f4bbb0 /lib/sqlalchemy/orm/relationships.py | |
parent | c3b1b554081d1af772ab9cae2e12f88d4cf80912 (diff) | |
download | sqlalchemy-9d5188b1926dad9e3a8d4f6e5eb8e0562956f1f0.tar.gz |
- add cross-linking for passive_deletes / passive_updates
Diffstat (limited to 'lib/sqlalchemy/orm/relationships.py')
-rw-r--r-- | lib/sqlalchemy/orm/relationships.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/relationships.py b/lib/sqlalchemy/orm/relationships.py index 879fe7c78..46dd91c6e 100644 --- a/lib/sqlalchemy/orm/relationships.py +++ b/lib/sqlalchemy/orm/relationships.py @@ -514,6 +514,11 @@ class RelationshipProperty(StrategizedProperty): after a flush occurs so this is a very special use-case setting. + .. seealso:: + + :ref:`passive_deletes` - Introductory documentation + and examples. + :param passive_updates=True: Indicates loading and INSERT/UPDATE/DELETE behavior when the source of a foreign key value changes (i.e. an "on update" @@ -540,10 +545,16 @@ class RelationshipProperty(StrategizedProperty): are expected and the database in use doesn't support CASCADE (i.e. SQLite, MySQL MyISAM tables). + .. seealso:: + + :ref:`passive_updates` - Introductory documentation and + examples. + + :paramref:`.mapper.passive_updates` - a similar flag which + takes effect for joined-table inheritance mappings. + Also see the passive_updates flag on ``mapper()``. - A future SQLAlchemy release will provide a "detect" feature for - this flag. :param post_update: this indicates that the relationship should be handled by a |