title: Symfony2 - FindBy To Arrays Parameters
body: <p>I can't Call <code>findBy</code> with to arrays by the following code : </p>
  
  <pre><code>    return $this-&gt;repository-&gt;findBy(array('secteur'=&gt;$secteur),array('slug'=&gt;$slug));
  </code></pre>
  
  <p><strong>Exception :</strong></p>
  
  <pre><code>message: "Warning: trim() expects parameter 1 to be string, array given in C:\wamp\www\Symfonyv2\vendor\doctrine\orm\lib\Doctrine\ORM\Persisters\BasicEntityPersister.php line 1168",
  </code></pre>