From 38c7a16da25ec18327ff7c9536197b28ce3477da Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Wed, 19 Feb 2014 17:10:56 -0800 Subject: [PATCH] Override existing methods when mixing in DAO methods --- lib/datasource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datasource.js b/lib/datasource.js index 9ced62d8..86cdd984 100644 --- a/lib/datasource.js +++ b/lib/datasource.js @@ -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) {