Changing function used to obtain the original object ids when setting a ...

...relationship. The function that was being used was for obtain the term id of an object id, where we are trying to obtain the object id for a term id.