title: Symfony findOneBy / findBy
body: <p>Has anyone face this strange issue with Symfony 3 (very last version)?</p>
  <p>I have the following simple code:</p>
  <pre><code>$repository = $this-&gt;getDoctrine()
                     -&gt;getManager()
                     -&gt;getRepository('GeneralRegistrationBundle:Service');
  
  $service = $repository-&gt;findOneBy(array('name' =&gt; 'Registration'),array('name' =&gt; 'ASC'));
  
  $comment = $service-&gt;getComment();
  $name = $service-&gt;getName();
  
  return new Response('le service is '. $name . ', content is ' . $comment);
  </code></pre>
  <p>this code works.</p>
  <p>I purge the cache and change <code>findOneBy</code> with <code>findBy</code>:</p>
  <pre><code>$service = $repository-&gt;findBy(array('name' =&gt; 'Registration'),array('name' =&gt; 'ASC'),1 ,0);
  </code></pre>
  <p>then I have the following error:</p>
  <blockquote>
  <p>Error: Call to a member function getComment() on array</p>
  </blockquote>
  <p>Is anybody have ideas or clues?</p>
  <p>Thanks in advance.</p>