diff --git a/lib/scope.js b/lib/scope.js index 5124251d..d8ebb7c3 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -162,7 +162,7 @@ function defineScope(cls, targetClass, name, params, methods, options) { f._targetClass = targetModel.modelName; if (f._scope.collect) { - f._targetClass = i8n.capitalize(f._scope.collect); + f._targetClass = i8n.camelize(f._scope.collect); } f.build = build;