Return scope object from DAO.scope
This commit is contained in:
parent
b5188a5af4
commit
bbce005d12
|
@ -2080,7 +2080,7 @@ DataAccessObject.scope = function (name, query, targetClass, methods, options) {
|
||||||
if (options && options.isStatic === false) {
|
if (options && options.isStatic === false) {
|
||||||
cls = cls.prototype;
|
cls = cls.prototype;
|
||||||
}
|
}
|
||||||
defineScope(cls, targetClass || cls, name, query, methods, options);
|
return defineScope(cls, targetClass || cls, name, query, methods, options);
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue