If you create a class with related joins and add items to the join, 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
referring to the object being destroyed and from the joins of the object
The patch is against the svn head as of today and is attached and also
in the patch tracker: