updated Dao.Save godoc

This commit is contained in:
Gani Georgiev
2023-03-30 21:19:14 +03:00
parent 29a264e132
commit 216efb95a8
3 changed files with 12 additions and 3 deletions

View File

@@ -159,8 +159,11 @@ func (dao *Dao) DeleteCollection(collection *models.Collection) error {
})
}
// SaveCollection upserts the provided Collection model and updates
// SaveCollection persists the provided Collection model and updates
// its related records table schema.
//
// If collecction.IsNew() is true, the method will perform a create, otherwise an update.
// To explicitly mark a collection for update you can use collecction.MarkAsNotNew().
func (dao *Dao) SaveCollection(collection *models.Collection) error {
var oldCollection *models.Collection