]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- establish a consistent pattern of behavior along o2m, m2m, and m2o relationships
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Nov 2010 00:34:47 +0000 (19:34 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 18 Nov 2010 00:34:47 +0000 (19:34 -0500)
commit1321a0c2b95ce4381157d0633f2d292a1d286151
tree90206e66436c6e79ead76b37a6cae476417329f4
parentd3ca4156495af556e448a8d3f6d5884d08ab2f9b
- establish a consistent pattern of behavior along o2m, m2m, and m2o relationships
when "save-update" cascade is disabled, or the target object is otherwise not
present in the session, and collection/scalar changes have taken place.  A warning
is emitted describing the type of operation, the target reference, and the relationship
description, stating that the operation will not take place.  The operation then doesn't
take place.   [ticket:1973]
- clean up test_cascade a little bit, remove cruft
lib/sqlalchemy/orm/dependency.py
lib/sqlalchemy/orm/unitofwork.py
test/orm/test_cascade.py
test/orm/test_session.py