code: function(key, map){
          if (!map) map = {};
          if (!key) key = this.getKey();
          var row;
          while (row = this.fetchAsObject()) this.mapAsObject(map, key, row);
          return map;
      }
docs: Fetch all rows as an object, store them as proprties in an object (which acts as map).
  @method mapAllAsObject
  @param key {string|array} OPTIONAL. A column name or an array of column names that will be used to generate property names for the map. If not specified, the default key is used. If there is no default key, all column names will be used.
  @param map {object} OPTIONAL. The object that is used as map. Rows are added as properties to this map. If not specified, a new object is created
  @return {object}