Obtain permamentId for inserted object before recursive looping into updating its children, otherwise they will not set the relationship on a temporary objectID'ed object