forked from mirror/gorm
clone callback when call Callback
This commit is contained in:
parent
31247c577d
commit
e2897f0c9b
|
@ -29,6 +29,10 @@ func (c *callback) addProcessor(typ string) *callback_processor {
|
|||
return cp
|
||||
}
|
||||
|
||||
func (c *callback) clone() *callback {
|
||||
return &callback{processors: c.processors}
|
||||
}
|
||||
|
||||
func (c *callback) Create() *callback_processor {
|
||||
return c.addProcessor("create")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue