remove WithConditions

移除 WithConditions
This commit is contained in:
xxj
2020-11-30 14:12:18 +08:00
parent dc650df60f
commit cfb3d5edde

View File

@@ -72,7 +72,7 @@ func (obj *_BaseMgr) SetIsRelated(b bool) {
// New new gorm.新gorm // New new gorm.新gorm
func (obj *_BaseMgr) New() *gorm.DB { 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 { type options struct {