working towards full bean support
[mir.git] / source / mircoders / storage / DatabaseContent.java
index 9f55167..c1d494b 100755 (executable)
@@ -111,8 +111,10 @@ public class DatabaseContent extends Database implements StorageObject {
   public boolean delete(String id) throws StorageObjectFailure
   {
     DatabaseComment.getInstance().deleteByContentId(id);
-    super.delete(id);
-    return true;
+    DatabaseContentToTopics.getInstance().deleteByContentId(id);
+    DatabaseContentToMedia.getInstance().deleteByContentId(id);
+
+    return super.delete(id);
   }
 
 }