From cd5c9e191646f9c595701fb5534535c9e31108ff Mon Sep 17 00:00:00 2001 From: mka Date: Mon, 16 Dec 2013 13:32:15 +0000 Subject: [PATCH] Fix problem with deletion of relations --- Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Entity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Entity.java b/Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Entity.java index 152661b..1b1a50c 100644 --- a/Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Entity.java +++ b/Workspace/Siman-Common/src/org/splat/dal/bo/kernel/Entity.java @@ -173,7 +173,6 @@ public abstract class Entity extends Any { LOG.debug("Nb relations of this before: " + this.getAllRelations().size()); } - res.owner = null; this.getAllRelations().remove(res); if (LOG.isDebugEnabled()) { LOG.debug("Nb relations of this after: " @@ -191,6 +190,7 @@ public abstract class Entity extends Any { + ((Entity) res.getTo()).getAllRelations().size()); } } + res.owner = null; } return res; } -- 2.39.2