Fix camel-case issue where relation is 'hasAndBelongsToMany' #304
Signed-off-by: Khashayar Hajian <me@khashayar.me>
This commit is contained in:
parent
28a661a81a
commit
c3df513712
|
@ -162,7 +162,7 @@ function defineScope(cls, targetClass, name, params, methods, options) {
|
||||||
|
|
||||||
f._targetClass = targetModel.modelName;
|
f._targetClass = targetModel.modelName;
|
||||||
if (f._scope.collect) {
|
if (f._scope.collect) {
|
||||||
f._targetClass = i8n.capitalize(f._scope.collect);
|
f._targetClass = i8n.camelize(f._scope.collect);
|
||||||
}
|
}
|
||||||
|
|
||||||
f.build = build;
|
f.build = build;
|
||||||
|
|
Loading…
Reference in New Issue