title: Symfony2 Doctrine
body: <p>I try to do a database query using</p>
  
  <pre><code>$position = $repository-&gt;findBy(
      array('id' =&gt; $profileId,'datum' =&gt; '10.07.2011'),
      array('timestamp', 'DESC')
  );
  </code></pre>
  
  <p>the database looks like</p>
  
  <pre><code>id  haveInCircles   inOtherCircles  datum   timestamp
  1   24  14  11.07.2011  1310403840
  1   20  10  10.07.2011  1310317440
  1   10  5   09.07.2011  1310317440
  1   25  17  12.07.2011  1310468838
  </code></pre>
  
  <p>The result I get is always the data of the last day into the database. In this case '12.07.2011'.</p>