]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
the consideration of a pending object as
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 25 Jan 2013 02:31:23 +0000 (21:31 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 25 Jan 2013 02:31:23 +0000 (21:31 -0500)
commita477f8a61ec60b2fc343d87aa30ef6595c77727d
treea3768faf5fb9513cefebaa02f122bd1565f057ce
parentb1df6fab53a0d740fe60f04e5c9ad01027ba59af
the consideration of a pending object as
an "orphan" has been modified to more closely match the
behavior as that of persistent objects, which is that the object
is expunged from the :class:`.Session` as soon as it is
de-associated from any of its orphan-enabled parents.  Previously,
the pending object would be expunged only if de-associated
from all of its orphan-enabled parents.  The new flag ``legacy_is_orphan``
is added to :func:`.orm.mapper` which re-establishes the
legacy behavior. [ticket:2655]
doc/build/changelog/changelog_08.rst
doc/build/changelog/migration_08.rst
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/properties.py
test/orm/test_cascade.py