saveModel method
Implementation
Future<T> saveModel(T model) async {
await model.loadRelations();
await _save(model);
await change(CollectionChangeType.createOrUpdate, model);
return model;
}
Future<T> saveModel(T model) async {
await model.loadRelations();
await _save(model);
await change(CollectionChangeType.createOrUpdate, model);
return model;
}