mirror of https://github.com/go-gorm/gorm.git
Fix clone callback
This commit is contained in:
parent
ce72988e96
commit
b5edc9137c
|
@ -30,7 +30,13 @@ func (c *callback) addProcessor(typ string) *callbackProcessor {
|
|||
}
|
||||
|
||||
func (c *callback) clone() *callback {
|
||||
return &callback{processors: c.processors}
|
||||
return &callback{
|
||||
creates: c.creates,
|
||||
updates: c.updates,
|
||||
deletes: c.deletes,
|
||||
queries: c.queries,
|
||||
processors: c.processors,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *callback) Create() *callbackProcessor {
|
||||
|
|
Loading…
Reference in New Issue