FIX: When saving multiple m2m beans, only last m2m wins (Regression due #1630) (#1638)

* provide test case, that shows problem on multiple-m2m

* FIX: When saving multiple m2m beans, only last m2m wins (Regression due #1630)
This commit is contained in:
Roland Praml authored and Rob Bygrave committed 2019-02-12 09:31:04 +13:00
1 parent 7929d8c0b8
commit fc7fae35c9
5 files changed
+67 -6

No files matched your search

@@ -247,7 +247,7 @@ public class SaveManyBeans extends SaveManyBase {
if (request.isQueueManyIntersection()) {
// queue/delay until bean persist request is flushed
this.deleteMissing = deleteMissingChildren;
request.setManyIntersection(this);
request.addManyIntersection(this);
} else {
saveAssocManyIntersection(deleteMissingChildren, false);
}