Fix deleted object would be re-saved by cascade (remove deleted object from associations): [com.wisemapping.model.Collaboration#114902]; nested exception is org.hibernate.ObjectDeletedException: deleted object would be re-saved by cascade (remove deleted object from associations): [com.wisemapping.model.Collaboration#114902]

This commit is contained in:
Paulo Gustavo Veiga 2013-02-10 16:14:32 -03:00
parent 7bd87c50ac
commit f245116e48

View File

@ -122,8 +122,8 @@ public class MindmapServiceImpl
}
// When you delete an object from hibernate you have to delete it from *all* collections it exists in...
mindmapManager.removeCollaboration(collaboration);
collaborations.remove(collaboration);
mindmapManager.removeCollaboration(collaboration);
}
@Override