delete parent/child relation before updating it