#2141 - Fix for failing test, revert of fix for #2127

This commit is contained in:
rob bygrave
2021-01-05 17:56:55 +13:00
parent 0d83978c58
commit d8f4503d98
2 changed files with 5 additions and 4 deletions
@@ -349,9 +349,9 @@ public class SaveManyBeans extends SaveManyBase {
return;
}
if (!(value instanceof BeanCollection<?>)) {
if (!insertedParent && cascade && hasNewOrDirtyBeans()) {
persister.addToFlushQueue(many.deleteByParentId(request.getBeanId(), null), transaction, 0);
}
// if (!insertedParent && cascade && hasNewOrDirtyBeans()) {
// persister.addToFlushQueue(many.deleteByParentId(request.getBeanId(), null), transaction, 0);
// }
} else {
BeanCollection<?> c = (BeanCollection<?>) value;
Set<?> modifyRemovals = c.getModifyRemovals();