func syncToProductionAfterCreate(scope *gorm.Scope) { if !scope.HasError() { if ok, clone := getModeAndNewScope(scope); ok { gorm.Create(clone) } } }
func syncCreateFromProductionToDraft(scope *gorm.Scope) { if !scope.HasError() { if ok, clone := isProductionModeAndNewScope(scope); ok { gorm.Create(clone) } } }