title: Filter Productcollection by sku
body: <p>I tried to get all products with suitable skus in Magento 2.</p>
  
  <p>What i did: </p>
  
  <pre><code>$currentSku =  $_product-&gt;getSku();
  
  $currentSku = substr($currentSku, 0, 3);
  
  $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
  /** @var \Magento\Catalog\Model\ResourceModel\Product\Collection $productCollection */
  $productCollection = $objectManager-&gt;create('Magento\Catalog\Model\ResourceModel\Product\Collection');
  $productCollection-&gt;addFieldToFilter('sku', array('like' =&gt; ''.$currentSku.' %'));
  /** Apply filters here */
  $productCollection-&gt;load();
  </code></pre>
  
  <p>The collection is always empty but there are suitable products. </p>
  
  <p>I tried to filter the collection by name and this worked. </p>