Override existing methods when mixing in DAO methods

This commit is contained in:
Ritchie Martori 2014-02-19 17:10:56 -08:00
parent 61a54da418
commit 38c7a16da2
1 changed files with 1 additions and 1 deletions

View File

@ -539,7 +539,7 @@ DataSource.prototype.mixin = function (ModelCtor) {
var DAO = this.DataAccessObject;
// mixin DAO
jutil.mixin(ModelCtor, DAO, {proxyFunctions: true});
jutil.mixin(ModelCtor, DAO, {proxyFunctions: true, override: true});
// decorate operations as alias functions
Object.keys(ops).forEach(function (name) {