Delete on association proxy crash if you don't flush before deleting the association

Issue #1167 resolved
Former user created an issue

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)

  1. jek
    • changed component to orm
    • changed status to wontfix

    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.

  2. Log in to comment