]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- unit-of-work does a better check for "orphaned" objects that are
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Aug 2006 17:21:01 +0000 (17:21 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 18 Aug 2006 17:21:01 +0000 (17:21 +0000)
commitc48177f0fed3a43b3b8b02c18243cb1664ce0abb
tree1b4e70a8e4d64059fff906533cf14b35b8845946
parentbd04cffad83848e3edc5cb51c51ca6232270477a
- unit-of-work does a better check for "orphaned" objects that are
part of a "delete-orphan" cascade, for certain conditions where the
parent isnt available to cascade from.
- it is now invalid to declare a self-referential relationship with
"delete-orphan" (as the abovementioned check would make them impossible
to save)
- improved the check for objects being part of a session when the
unit of work seeks to flush() them as part of a relationship..
CHANGES
examples/adjacencytree/basic_tree.py
examples/adjacencytree/byroot_tree.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/session.py
lib/sqlalchemy/orm/unitofwork.py
test/orm/alltests.py
test/orm/cycles.py
test/orm/session.py [new file with mode: 0644]