title: Multiple condition inside a DQL query
body: <p>I need to build a SQL/DQL query for my dating website, which retrieve all users with some matched fields like sex, age, location and 3 interests. I don't know how to create multiple condition inside my DQL Query. I've started with something like that:</p>
  
  <p><code>SELECT u FROM MyUserBundle:User u WHERE u.sex LIKE :preference");
                               $query-&gt;setParameters(array('preference' =&gt; '%' . $preference . '%'
                               'age' =&gt; '%' . $age . '%'
                               'location' =&gt; '%' . $location . '%'
                                'interest' =&gt; '%' . $interests . '%'));
  $users = $query-&gt;getResult();</code></p>
  
  <p>I'm using Symfony2 and Doctrine2 and it doesn't work for me. Someone can show me how to manage multiple condition inside my query ? Thanks for your help!</p>