Merge branch 'develop'

This commit is contained in:
Gani Georgiev committed 2023-04-01 12:36:10 +03:00
commit 0b90ce43c3
87 files changed
+135 -129

No files matched your search

+4 -1
View File
@@ -214,7 +214,10 @@ func (dao *Dao) Delete(m models.Model) error {
})
}
// Save upserts (update or create if primary key is not set) the provided model.
// Save persists the provided model in the database.
//
// If m.IsNew() is true, the method will perform a create, otherwise an update.
// To explicitly mark a model for update you can use m.MarkAsNotNew().
func (dao *Dao) Save(m models.Model) error {
if m.IsNew() {
return dao.lockRetry(func(retryDao *Dao) error {