save relations and model params as metadata to transformation var