mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +01:00
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:
parent
7bd87c50ac
commit
f245116e48
@ -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...
|
// When you delete an object from hibernate you have to delete it from *all* collections it exists in...
|
||||||
mindmapManager.removeCollaboration(collaboration);
|
|
||||||
collaborations.remove(collaboration);
|
collaborations.remove(collaboration);
|
||||||
|
mindmapManager.removeCollaboration(collaboration);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user