Override existing methods when mixing in DAO methods
This commit is contained in:
parent
61a54da418
commit
38c7a16da2
|
@ -539,7 +539,7 @@ DataSource.prototype.mixin = function (ModelCtor) {
|
||||||
var DAO = this.DataAccessObject;
|
var DAO = this.DataAccessObject;
|
||||||
|
|
||||||
// mixin DAO
|
// mixin DAO
|
||||||
jutil.mixin(ModelCtor, DAO, {proxyFunctions: true});
|
jutil.mixin(ModelCtor, DAO, {proxyFunctions: true, override: true});
|
||||||
|
|
||||||
// decorate operations as alias functions
|
// decorate operations as alias functions
|
||||||
Object.keys(ops).forEach(function (name) {
|
Object.keys(ops).forEach(function (name) {
|
||||||
|
|
Loading…
Reference in New Issue