Commit Graph

36 Commits

Author SHA1 Message Date
Dom Narducci c46c01c116 Log callback registration if logger exists for consistency 2019-10-25 13:51:29 -07:00
Lilit 7729627ff6 Fix logging callbacks (#2652) 2019-10-17 23:12:01 +08:00
Jay Chung e5d0267c0b Fix typo of example code 2019-10-05 12:12:47 +08:00
Shunsuke Otani d5cafb5db1 Fix CallbackProcessor.Get() for removed or replaced same name callback (#2548) 2019-09-12 22:16:05 +08:00
Emir Beganović 985c3a174e
Remove unused import 2019-05-08 10:49:33 +04:00
Emir Beganović 6c53214a29
Use Print method 2019-05-08 10:49:00 +04:00
Emir Beganović bb3c74467d
Update two more places 2019-05-08 10:26:49 +04:00
John Barker 8b127471f1 Pass logger into Callback{} so that logs are printed consistently 2019-05-07 10:42:20 -06:00
Konrad Kleine 9c9de89686 Use log.PrintX instead of fmt.PrintX (#1634) 2017-10-10 08:04:23 -05:00
Jinzhu 7fb9b62c17 Apply Before('gorm:row_query') for row query callbacks w/o specify order for compatibility 2017-01-16 09:48:06 +08:00
Maxime Song 58cbc9c4b5 fix typo 2017-01-04 15:53:49 +08:00
gernest e651609eaa
Fix typo 2016-12-21 11:11:23 +03:00
Jinzhu bd99af5067 Fix GORM with Go 1.4 #892 2016-03-09 20:44:31 +08:00
Jinzhu 88184a989e Update godoc 2016-03-07 21:09:05 +08:00
Jinzhu ec110657da Refactor based on golint 2016-03-07 17:49:55 +08:00
Jinzhu 2522f03c1f Set identity insert on after create transaction, close #841 2016-03-05 19:22:33 +08:00
Jinzhu f9c6d17b2a Reorder callbacks after append it 2016-02-15 17:22:29 +08:00
Jinzhu 9caf48035d Refactor callback 2016-02-15 16:55:47 +08:00
Jinzhu 5d4aae2d11 Don't sort processors that without name 2016-02-15 16:23:26 +08:00
Jinzhu 07773cc367 Keep refactoring on callbacks 2016-01-17 20:51:11 +08:00
Jinzhu de73d30503 Refactor callbacks 2016-01-17 15:30:42 +08:00
Jinzhu 8e2aaa92c9 Rename Callbacks to Callback 2016-01-16 21:55:00 +08:00
Jinzhu f1237e4fe9 Refactor Callback 2016-01-16 21:46:57 +08:00
Jinzhu ef4299b398 Add RowQuery callback 2015-04-17 18:27:20 +08:00
Jinzhu b5edc9137c Fix clone callback 2015-02-26 14:47:56 +08:00
Jinzhu 73b6f0eace Linting according to golint 2015-02-17 08:34:01 +08:00
Jinzhu 58ff124210 Fix messages for remove, replace callbacks 2014-09-02 20:13:00 +08:00
Jinzhu 9c7ff3d211 Don't show duplicated replacing callback message 2014-09-01 17:32:11 +08:00
Jinzhu 0ed805099e Fix register callbacks in some cases 2014-08-27 16:10:33 +08:00
Jinzhu 3eb4adafba Extract method FieldByName 2014-07-15 11:53:17 +08:00
Jinzhu e2897f0c9b clone callback when call Callback 2014-01-29 10:25:58 +08:00
Jinzhu 973acd6339 Add callback create, delete 2014-01-26 12:41:37 +08:00
Jinzhu 192ed06ad8 Add tests for replace, remove callback 2014-01-25 20:04:01 +08:00
Jinzhu a8b13f015f Make callback.go works 2014-01-25 19:35:21 +08:00
Jinzhu ff70578eeb Add callback.go 2014-01-24 21:52:26 +08:00
Jinzhu 6bb7c8b744 Add callback.go 2014-01-23 16:43:39 +08:00