Merged redundant code into one-to-many
Fixed branching for newValueForRelationship method