Skip to content

Commit

Permalink
Adding a fix for a 1:N relationship bug in ERRest
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Robert committed Jun 19, 2012
1 parent 30fde8a commit a4c3bd7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,11 @@ public void updateObjectWithFilter(Object obj, ERXKeyFilter keyFilter, ERXRestCo
childObj = null;
}
else {
childObj = toManyNode.value();
if (toManyNode.value() != null) {
childObj = toManyNode.value();
} else {
childObj = IERXRestDelegate.Factory.delegateForClassDescription(destinationClassDescription).objectOfEntityWithID(destinationClassDescription, id, context);
}
}
}
else if (id == null) {
Expand Down

0 comments on commit a4c3bd7

Please sign in to comment.