Fixing remove from context

This commit is contained in:
Luca Frosini 2021-03-09 12:26:49 +01:00
parent 43fdf5e237
commit d68c3ba564
1 changed files with 3 additions and 0 deletions

View File

@ -572,6 +572,9 @@ public abstract class RelationManagement<T extends EntityManagement<? extends En
targetEntityManagement.setDryRun(dryRun); targetEntityManagement.setDryRun(dryRun);
targetEntityManagement.setHonourPropagationConstraintsInContextSharing(honourPropagationConstraintsInContextSharing); targetEntityManagement.setHonourPropagationConstraintsInContextSharing(honourPropagationConstraintsInContextSharing);
targetEntityManagement.setTargetSecurityContext(targetSecurityContext); targetEntityManagement.setTargetSecurityContext(targetSecurityContext);
if(targetEntityManagement instanceof ResourceManagement) {
((ResourceManagement) targetEntityManagement).setSanityCheckNotRequired();
}
switch(removeConstraint) { switch(removeConstraint) {
case cascade: case cascade:
targetEntityManagement.internalRemoveFromContext(); targetEntityManagement.internalRemoveFromContext();