lib/associations/manyToMany.js
function () {
                if (!this.__joinTableDataset) {
                    var ds = this.__joinTableDataset = this.model.dataset.db.from(this.joinTableName), model = this.model, options = this.__opts;
                    var identifierInputMethod = isUndefined(options.identifierInputMethod) ? model.identifierInputMethod : options.identifierInputMethod,
                        identifierOutputMethod = isUndefined(options.identifierOutputMethod) ? model.identifierOutputMethod : options.identifierOutputMethod;
                    if (identifierInputMethod) {
                        ds.identifierInputMethod = identifierInputMethod;
                    }
                    if (identifierOutputMethod) {
                        ds.identifierOutputMethod = identifierOutputMethod;
                    }
                }
                return this.__joinTableDataset;
            }
function () {
                if (!this.__joinTableDataset) {
                    var ds = this.__joinTableDataset = this.model.dataset.db.from(this.joinTableName), model = this.model, options = this.__opts;
                    var identifierInputMethod = isUndefined(options.identifierInputMethod) ? model.identifierInputMethod : options.identifierInputMethod,
                        identifierOutputMethod = isUndefined(options.identifierOutputMethod) ? model.identifierOutputMethod : options.identifierOutputMethod;
                    if (identifierInputMethod) {
                        ds.identifierInputMethod = identifierInputMethod;
                    }
                    if (identifierOutputMethod) {
                        ds.identifierOutputMethod = identifierOutputMethod;
                    }
                }
                return this.__joinTableDataset;
            }
function ( ) { if ( ! this . __joinTableDataset ) { var ds = this . __joinTableDataset = this . model . dataset . db . from ( this . joinTableName ) , model = this . model , options = this . __opts ; var identifierInputMethod = isUndefined ( options . identifierInputMethod ) ? model . identifierInputMethod : options . identifierInputMethod , identifierOutputMethod = isUndefined ( options . identifierOutputMethod ) ? model . identifierOutputMethod : options . identifierOutputMethod ; if ( identifierInputMethod ) { ds . identifierInputMethod = identifierInputMethod ; } if ( identifierOutputMethod ) { ds . identifierOutputMethod = identifierOutputMethod ; } } return this . __joinTableDataset ; }
returns our join table model
returns our join table model