docs: function(entity, options) {
        this._byId[entity.cid] = entity;
        var id = this.entityId(entity.attributes);
        if (id != null) this._byId[id] = entity;
        entity.on('all', this._onEntityEvent, this);
      }