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-02-02 09:44:13 -06:00
2013-01-18 11:40:40 +01:00
2013-01-18 11:40:40 +01:00
2012-12-25 19:54:09 +01:00
2012-12-25 20:06:03 +01:00
2012-12-23 21:45:46 +01:00
2013-01-18 11:40:40 +01:00
2012-12-21 00:30:48 +01:00
2013-01-18 11:40:40 +01:00
2013-01-18 11:40:40 +01:00
2013-01-29 21:13:49 +01:00