Save the ID of an entry to the object when successfuly saving.