saveModel method

Future<T> saveModel(
  1. T model
)

Implementation

Future<T> saveModel(T model) async {
  await model.loadRelations();

  await _save(model);

  await change(CollectionChangeType.createOrUpdate, model);

  return model;
}