code: public void flushToDatastore() {
  		if ( getAssociation().isEmpty() ) {
  			gridDialect.removeAssociation( getAssociationKey(), getAssociationContext() );
  			association = null;
  			OgmEntityEntryState.getStateFor( session, hostingEntity ).setAssociation( associationKeyMetadata.getCollectionRole(), null );
  		}
  		else if ( !getAssociation().getOperations().isEmpty() ) {
  			gridDialect.insertOrUpdateAssociation( getAssociationKey(), getAssociation(), getAssociationContext() );
  		}
  
  		updateHostingEntityIfRequired();
  	}
docs: Writes out the changes gathered in the {@link Association} managed by this persister to the datastore.