title: Query builder symfony2 using where IN
body: <p>I have the following query builder to add to my entity.   </p>
  
  <pre><code>'query_builder' =&gt; function(\Teln\OperatorBundle\Entity\SoftswitchRepository $er) use ($idBase) {
      $qb = $er-&gt;createQueryBuilder('t')
      -&gt;where('t.base IN (:id)')
      -&gt;setParameter('id', $idBase);
  
      return $qb;
  },
  </code></pre>
  
  <p>and <code>$idBase= $builder-&gt;getData()-&gt;getBases();</code></p>
  
  <p>So <code>$idBase</code> is a collection.</p>
  
  <p>How to add this to the <strong>where using  IN</strong> ?</p>