title: Doctrine and Symfony2: WHERE a.title LIKE $array
body: <p>Hey I'm writing this post because I have few problem passing an array value in the doctrine query.</p>
  
  <p>Here is the entire query as it is:</p>
  
  <pre><code>$data = $request-&gt;request-&gt;all();
  $dql   = "SELECT a FROM PfBlogBundle:Article a WHERE a.title LIKE '{$data['search']}' ORDER by a.id DESC";
  </code></pre>
  
  <p>If I print_r($data) I get the value so it's there somewhere. I just don't understand why it's not passing in the query.. Was expecting LIKE '{$data['search']}' to work but it doesn't. </p>