diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-02-27 01:05:01 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-02-27 01:05:01 +0000 |
| commit | e5415ee9e10da5db55d1ebeac8a486cd4ac88984 (patch) | |
| tree | ca37ea8b360902fd94ba4260afc2c5db690a05df /lib/sqlalchemy/mapping | |
| parent | 60ed421299b45050b73574966541d808b47adafe (diff) | |
| download | sqlalchemy-e5415ee9e10da5db55d1ebeac8a486cd4ac88984.tar.gz | |
more work on cycles, fleshed out tests for post_update, fix to the delete phase of a one-to-many post update
closes [ticket:67]
Diffstat (limited to 'lib/sqlalchemy/mapping')
| -rw-r--r-- | lib/sqlalchemy/mapping/properties.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/mapping/properties.py b/lib/sqlalchemy/mapping/properties.py index 85fd7418b..023e44bf7 100644 --- a/lib/sqlalchemy/mapping/properties.py +++ b/lib/sqlalchemy/mapping/properties.py @@ -458,7 +458,7 @@ class PropertyLoader(MapperProperty): elif self.direction == PropertyLoader.ONETOMANY and delete: # head object is being deleted, and we manage its list of child objects # the child objects have to have their foreign key to the parent set to NULL - if self.private: + if self.private and not self.post_update: # if we are privately managed, then all our objects should # have been marked as "todelete" already and no attribute adjustment is needed return |
