mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#1669 - When deleting complex object graphs, entities are deleted multiple times
Fix by not unregistering the deleted bean hash in the transaction so that the skip occurs on other root level bean traversals (the delete of the 2nd master bean)
This commit is contained in:
1 parent
2430404e1f
commit
1c6fa575f2
7 files changed
-36
No files matched your search
@@ -882,7 +882,6 @@ public final class DefaultPersister implements Persister {
|
||||
// bean to handle bi-directional cascading
|
||||
request.registerDeleteBean();
|
||||
deleteAssocMany(request);
|
||||
request.unregisterDeleteBean();
|
||||
|
||||
unloadedForeignKeys = getDeleteUnloadedForeignKeys(request);
|
||||
if (unloadedForeignKeys != null) {
|
||||
|
||||
Reference in new issue
Block a user