#78 Delete related join entries on destroySelf()

closed-accepted
Oleg Broytman
None
5
2006-11-10
2006-11-09
Markus Niemistö
No

If you create a class with related joins and use them,
the entries on the intermediate table won't be deleted
along with the object itself. I have found this really
annoying.

Attached patch deletes these related join rows from all
objects refering to the object being destoyed and from
the joins of the object itself.

The patch is against SQLObject subversion head as of
9th November 2006.

Discussion

  • New patch with a small bug fixed

     
    Attachments
  • Oleg Broytman
    Oleg Broytman
    2006-11-10

    Logged In: YES
    user_id=4799

    Applied and committed in the revisions 2072-2074. Many
    thanks! I added a test, see test_delete.py.

     
  • Oleg Broytman
    Oleg Broytman
    2006-11-10

    • assigned_to: nobody --> phd
    • status: open --> closed-accepted