Elrond df5b142ab9 Fix deleting media with attachments.
If one deletes a media with attachments, there have been
various problems:
1) If the file in the storage did not exist any more (maybe
   because due to a previous deletion attempt?), the error
   propagation failed, because the wrong thing was
   gathered.
2) The attachment database entries were not deleted.
   Using cascade for this, for now.

Also add a simple unit test, that tests both by having a
broken attachment on a media.
2013-02-18 14:55:42 +01:00
..
2012-12-25 20:06:03 +01:00
2013-01-07 13:52:37 +01:00
2013-01-23 16:49:54 -06:00
2013-01-07 13:42:32 +01:00
2013-02-18 14:55:42 +01:00
2013-01-18 18:42:52 +01:00
2013-01-15 14:49:50 +01:00