Your Question

I am using gorm's AutoUpdateTime in my struct against a time field. I am using BulkUpsert operation to update an entity but the time stamp is not getting updated.

Here is the field - LastUpdateDate time.Timegorm:"<-:update;autoUpdateTime"``

Here is the query - gormInstance.BulkUpsert(ctx, tx, &groupEnrolmentEntries, gorm_models.GetGroupEnrolment().TableName(), clause.OnConflict{ Columns: []clause.Column{{Name: "group_id"}, {Name: "user_id"}}, UpdateAll: true, })

Expected answer

Comment From: mukul-agarwal-wbd

@jinzhu Hey i am sure you guys are doing the best you can, but if someone could look at this soon! thanks