[SQL-CVS] [ sqlobject-Patches-1593174 ] Delete related join entries on destroySelf()
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: SourceForge.net <no...@so...> - 2006-11-10 15:34:34
|
Patches item #1593174, was opened at 2006-11-09 10:21 Message generated for change (Comment added) made by phd You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540674&aid=1593174&group_id=74338 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 5 Private: No Submitted By: Markus Niemistiemisto) >Assigned to: Oleg Broytmann (phd) Summary: Delete related join entries on destroySelf() Initial Comment: 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. ---------------------------------------------------------------------- >Comment By: Oleg Broytmann (phd) Date: 2006-11-10 18:34 Message: Logged In: YES user_id=4799 Applied and committed in the revisions 2072-2074. Many thanks! I added a test, see test_delete.py. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=540674&aid=1593174&group_id=74338 |