From: Mike Bayer Date: Sun, 31 Jan 2010 15:52:00 +0000 (+0000) Subject: fix flag name X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99ea870f6272595764ec91791f5551b061b8c162;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix flag name --- diff --git a/doc/build/mappers.rst b/doc/build/mappers.rst index b9f598a3ef..8074cde1f1 100644 --- a/doc/build/mappers.rst +++ b/doc/build/mappers.rst @@ -1767,7 +1767,7 @@ When ``passive_deletes`` is applied, the ``children`` relation will not be loade Mutable Primary Keys / Update Cascades --------------------------------------- -As of SQLAlchemy 0.4.2, the primary key attributes of an instance can be changed freely, and will be persisted upon flush. When the primary key of an entity changes, related items which reference the primary key must also be updated as well. For databases which enforce referential integrity, it's required to use the database's ON UPDATE CASCADE functionality in order to propagate primary key changes. For those which don't, the ``passive_cascades`` flag can be set to ``False`` which instructs SQLAlchemy to issue UPDATE statements individually. The ``passive_cascades`` flag can also be ``False`` in conjunction with ON UPDATE CASCADE functionality, although in that case it issues UPDATE statements unnecessarily. +As of SQLAlchemy 0.4.2, the primary key attributes of an instance can be changed freely, and will be persisted upon flush. When the primary key of an entity changes, related items which reference the primary key must also be updated as well. For databases which enforce referential integrity, it's required to use the database's ON UPDATE CASCADE functionality in order to propagate primary key changes. For those which don't, the ``passive_updates`` flag can be set to ``False`` which instructs SQLAlchemy to issue UPDATE statements individually. The ``passive_updates`` flag can also be ``False`` in conjunction with ON UPDATE CASCADE functionality, although in that case it issues UPDATE statements unnecessarily. A typical mutable primary key setup might look like: