code: function(options) {
      this.autojoin = options || {}
      this.autojoin.enabled = true
      this.autojoin.relations = this.autojoin.relations || []
      return this
    }
docs: Enable automatic joins on tables referenced in conditions
  @class Definition
  @method autoJoin
  @param {object} options - Optional configuration options
  
  @options
  @param {array} relations - Only use the given relations for the automatic joins.
  
  @return {Definition}