title: Doctrine Query Builder using Array
body: <p>I have an array of id: </p>
  
  <pre><code>Id_array; //array(2) { [0]=&gt; int(9) [1]=&gt; int(10) } 
  </code></pre>
  
  <p>I simply want to select the users using Id_array;
  I managed to do this when I don't have an array but just an integer:</p>
  
  <pre><code>$query = $em-&gt;createQuery('SELECT u FROM Users u WHERE u.id = ?1');
  $query-&gt;setParameter(1, 9); // I tested the value 9 here
  $users = $query-&gt;getResult(); 
  </code></pre>
  
  <p>How can I fetch all the users that correspond to Id_array?</p>