remove WithConditions
移除 WithConditions
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user