lib/associations/_Association.js
function (model) {
            //if we have them return them;
            if (this.associationLoaded(model)) {
                var assoc = this.getAssociation(model);
                return this.isEager() ? assoc : when(assoc);
            } else if (model.isNew) {
                return null;
            } else {
                return this.fetch(model);
            }
        }
function (model) {
            //if we have them return them;
            if (this.associationLoaded(model)) {
                var assoc = this.getAssociation(model);
                return this.isEager() ? assoc : when(assoc);
            } else if (model.isNew) {
                return null;
            } else {
                return this.fetch(model);
            }
        }
function ( model ) { //if we have them return them; if ( this . associationLoaded ( model ) ) { var assoc = this . getAssociation ( model ) ; return this . isEager ( ) ? assoc : when ( assoc ) ; } else if ( model . isNew ) { return null ; } else { return this . fetch ( model ) ; } }
Alias used to explicitly get an association on a model.
@param {_Association} self reference to the Association that is being called.
Alias used to explicitly get an association on a model .