Fix delete relation
This commit is contained in:
parent
237014c3d0
commit
c89f8a66c4
|
@ -386,7 +386,7 @@ public class ProfiledMongoManager extends MongoManager implements MongoManagerI<
|
||||||
// delete reverse relation
|
// delete reverse relation
|
||||||
if(toDeleteReverseRelation!=null){
|
if(toDeleteReverseRelation!=null){
|
||||||
log.debug("Removing reverse of {} ",r);
|
log.debug("Removing reverse of {} ",r);
|
||||||
ProfiledMongoManager otherManager = (targetUCD.equals(this.useCaseDescriptor.getId()))?this:new ProfiledMongoManager(targetUCD);
|
ProfiledMongoManager otherManager = (toUseTargetUCD.equals(this.useCaseDescriptor.getId()))?this:new ProfiledMongoManager(targetUCD);
|
||||||
Project other = getByID(targetId);
|
Project other = getByID(targetId);
|
||||||
other = otherManager.lock(other.getId(),"Remove reverse relation "+toDeleteReverseRelation + " toward "+getUseCaseDescriptor().getId()+":"+id);
|
other = otherManager.lock(other.getId(),"Remove reverse relation "+toDeleteReverseRelation + " toward "+getUseCaseDescriptor().getId()+":"+id);
|
||||||
final String finalToDeleteReverseRelation = toDeleteReverseRelation;
|
final String finalToDeleteReverseRelation = toDeleteReverseRelation;
|
||||||
|
|
Loading…
Reference in New Issue