From b5edc9137ce3943fd4d5a0f89d1ceec923d0393c Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Thu, 26 Feb 2015 14:47:56 +0800 Subject: [PATCH] Fix clone callback --- callback.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/callback.go b/callback.go index 76c27d0c..be9a7f12 100644 --- a/callback.go +++ b/callback.go @@ -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 {