To create new object A with one to one relationship to another object B
I do the following:
Get the map of A
Set relationship of A to B and save
Is there a way I can add A with its relationship in one shot so I don’t have to do 2 operations (ie save then set relationship). I am just concerned that I add A and something wrong happens so I am left with A without a child relation.