[Issue #177] Fix for update / insert for multiple relationships

Signed-off-by: Mattt Thompson <m@mattt.me>