This commit is contained in:
xxj
2020-11-27 16:23:07 +08:00
parent d1879f7517
commit dc650df60f
4 changed files with 15 additions and 82 deletions

View File

@@ -63,7 +63,7 @@ func (obj *_BaseMgr) SetIsRelated(b bool) {
// New new gorm.新gorm
func (obj *_BaseMgr) New() *gorm.DB {
return obj.DB.Session(&gorm.Session{WithConditions: false, Context: obj.ctx})
return obj.DB.Session(&gorm.Session{Context: obj.ctx})
}
type options struct {