From 7b9374b3f638d44c4e3ffc0981b4fd4c48f6de19 Mon Sep 17 00:00:00 2001 From: JasonQu Date: Thu, 10 Oct 2019 16:39:21 +0800 Subject: [PATCH] fix: #2696 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 67e5f58e..2bb0e927 100644 --- a/main.go +++ b/main.go @@ -470,7 +470,7 @@ func (s *DB) Save(value interface{}) *DB { } return newDB } - return scope.callCallbacks(s.parent.callbacks.creates).db + return s.Create(value) } // Create insert the value into database