title: No result was found for query although at least one row was expected
body: <p>I have the following code:</p>
  
  <pre><code>/**
       * Search similar category given a string
       * 
       * @param $searchTerm search similar category
       */
      public function findOneSimilarCategory($searchTerm)
      {
          $query = $this-&gt;createQueryBuilder('secondLevelCategory')
                  -&gt;select('secondLevelCategory')
                  -&gt;where('secondLevelCategory.categoryTitle LIKE :searchTerm')
                  -&gt;setParameter('searchTerm', $searchTerm)
                  -&gt;getQuery();
  
          $query-&gt;useResultCache(true, self::CACHE_RESULT_LIFETIME, md5(__METHOD__ . serialize('category-search-' . $query-&gt;getParameters())));
          $query-&gt;useQueryCache(true);
          return $query-&gt;getSingleResult();
      }
  </code></pre>
  
  <p>however this gives me an error:</p>
  
  <p>"<code>PHP message: PHP Fatal error:  Uncaught exception 'Doctrine\ORM\NoResultException' with message 'No result was found for query although at least one row was expected.' in /var/www/Shopious/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:649</code></p>