title: How to pre-select "sw-entity-multi-select" component values from the database on load
body: <p>I am using <code>sw-entity-multi-select</code> for product dropdown in a custom vue component in Shopware 6</p>
  <pre><code>&lt;sw-entity-multi-select
          entity=&quot;product&quot;
          :criteria=&quot;listingCriteria&quot;
          :entityCollection=&quot;products&quot;
          :isLoading=&quot;isLoading&quot;
          @change=&quot;setProduct&quot;
          :label=&quot;$tc('sw-cms.elements.productSlider.config.placeholder.selection')&quot;
          :placeholder=&quot;$tc('sw-cms.elements.productSlider.config.placeholder.selection')&quot;
  &gt;
  &lt;/sw-entity-multi-select&gt;
  </code></pre>
  <p>I fetch the products like so:</p>
  <pre><code>    getProducts () {
        this.products = new EntityCollection(
          this.productRepository.route,
          this.productRepository.entityName,
          Context.api
        )
  
        if (this.productIds.length &lt;= 0) {
          return Promise.resolve()
        }
  
        this.listingCriteria.setIds(this.productIds)
  
        return this.productRepository.search(this.listingCriteria, Context.api).then((items) =&gt; {
          this.products = items
        })
      },
  
      setProduct (collection) {
        this.productIds = collection.getIds()
        this.products = collection
      },
  </code></pre>
  <p>It all works fine for saving the IDs for the first time, but I am not able to populate the saved products again on a re-load.</p>
  <p>If I set the <code>this.productIds</code> from the value from the database, for e.g <code>response.data.productIds</code> and call <code>this.getProducts()</code> it selects those products fine but only those 2 or 3 products are available in the dropdown, and searching for other products shows &quot;No result&quot; message.</p>
  <p>In short, I cannot add additional products anymore. Any suggestions?</p>
  <p>I am using regular <code>&lt;sw-multi-select&gt;</code> as well for some other entities and it works fine as I have less than 500 records for those entities. But for the products I have more than 150k products so I cannot populate them all together at once so I need the functionality of <code>&lt;sw-entity-multi-select&gt;</code> as it calls the additional products on request and I can initially just load 25 or 50 products in the dropdown.</p>