]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Using delete-orphan on a many-to-many relation is deprecated.
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 Jan 2009 18:08:48 +0000 (18:08 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 15 Jan 2009 18:08:48 +0000 (18:08 +0000)
commit79a7f1723ab86d560a98aa4a10f1861236e6fde1
tree1dc9759cb7f3bf1b3c2756a3c4d72fba398878d6
parent454f1d7f583a6530c28b2ca86235695d6952d292
- Using delete-orphan on a many-to-many relation is deprecated.
This produces misleading or erroneous results since SQLA does
not retrieve the full list of "parents" for m2m.  To get delete-orphan
behavior with an m2m table, use an explcit association class
so that the individual association row is treated as a parent.
[ticket:1281]

- delete-orphan cascade always requires delete cascade.  Specifying
delete-orphan without delete now raises a deprecation warning.
[ticket:1281]
CHANGES
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/util.py
test/orm/cascade.py
test/orm/unitofwork.py