Multiple inserted object relationships do not save

When creating multiple new objects and relating them, the relationships do not get saved since. After digging in to the issue, since the object has not yet been synced with Parse, it has not yet been assigned a Parse objectId.