Test and fix for BUG 420.

This commit is contained in:
Christian Romming
2013-08-28 23:06:37 +02:00
parent f71eac5f1e
commit 1cafea20c6
4 changed files with 81 additions and 1 deletions
@@ -508,7 +508,9 @@ public final class DefaultPersister implements Persister {
} else {
// we need to fetch the Id's to delete (recurse or notify L2 cache/lucene)
List<Object> childIds = manys[i].findIdsByParentId(id, idList, t, null);
delete(targetDesc, null, childIds, t);
if (!childIds.isEmpty()) {
delete(targetDesc, null, childIds, t);
}
}
}
}