Return scope object from DAO.scope

This commit is contained in:
Fabien Franzen 2015-03-26 15:39:26 +01:00
parent b5188a5af4
commit bbce005d12
1 changed files with 1 additions and 1 deletions

View File

@ -2080,7 +2080,7 @@ DataAccessObject.scope = function (name, query, targetClass, methods, options) {
if (options && options.isStatic === false) {
cls = cls.prototype;
}
defineScope(cls, targetClass || cls, name, query, methods, options);
return defineScope(cls, targetClass || cls, name, query, methods, options);
};
/*