- attached proxied_association.py
Delete on association proxy crash if you don't flush before deleting the association
Issue #1167
resolved
The ?bug? appears in the following case. First: Add a class with items persisted through an association proxy. session.save, session.flush. Second: Update your created object: empty the association list add an item to the association list empty the association add an item to the association delete the created object -> Integrity error
The bug appears in 0.4.7p1, 0.5rc1
Comments (6)
-
Account Deleted -
repo owner - changed milestone to 0.5.xx
- assigned issue to
-
This isn't an association proxy issue (removing association proxy from the example makes no difference). Adding a backref to the
itemassociations
relation allows the delete to complete as written. The backref requirement needs some investigation and may be a bug for a new ticket. -
- removed status
- changed status to open
Oops.
-
- changed status to wontfix
Works for me, not won't fix.
-
repo owner - removed milestone
Removing milestone: 0.5.xx (automated comment)
- Log in to comment
sample file to reproduce te bug