mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
[#428] Fixing ManyToMany association saving bug
This commit is contained in:
1 parent
fb8b435d7e
commit
0014961769
1 file changed
+3
-4
@@ -777,11 +777,10 @@ public final class DefaultPersister implements Persister {
|
||||
if (saveMany.isCascade()) {
|
||||
// Need explicit Cascade to save the beans on other side
|
||||
saveAssocManyDetails(saveMany, false, saveMany.isUpdateNullProperties());
|
||||
// for ManyToMany save the 'relationship' via inserts/deletes
|
||||
// into/from the intersection table
|
||||
saveAssocManyIntersection(saveMany, saveMany.isDeleteMissingChildren());
|
||||
}
|
||||
|
||||
// for ManyToMany save the 'relationship' via inserts/deletes
|
||||
// into/from the intersection table
|
||||
saveAssocManyIntersection(saveMany, saveMany.isDeleteMissingChildren());
|
||||
} else {
|
||||
if (saveMany.isCascade()) {
|
||||
saveAssocManyDetails(saveMany, saveMany.isDeleteMissingChildren(), saveMany.isUpdateNullProperties());
|
||||
|
||||
Reference in new issue
Block a user