Avoid updating incorrect model when parent and child entities have same properties