title: Globbing with symfony doctrine
body: <p>I want to retrieve data from a certain date to an another.
  The thing is, my date in Database is formated this way: YYYY-mm-dd hh:mm.
  The date I am using is only YYYY-mm-dd.</p>
  
  <p>I tried this:</p>
  
  <pre><code>$leds = $em-&gt;createQueryBuilder()
      -&gt;select('l')
      -&gt;from('AppBundle:Lead', 'l')
      -&gt;where('l.created_at BETWEEN ":endDate*" AND ":startDate*"')
      -&gt;setParameter('endDate', $endDate)
      -&gt;setParameter('startDate', $startDate)
      -&gt;getQuery()-&gt;getResult();
  </code></pre>
  
  <p>The final SQL request is</p>
  
  <pre><code>SELECT * FROM bar_contacts WHERE created_at BETWEEN "2015-11-30*" AND "2017-09-20*";
  </code></pre>