title: Doctrine query building select MAX
body: <p>I would like to select everything + MAX value and receive only rows having max values.</p>
  
  <pre><code>    $query = $this-&gt;createQueryBuilder('s');
      $query-&gt;where('s.challenge = :challenge')-&gt;setParameter('challenge', $challenge);
      $query-&gt;groupBy('s.score');
      $query-&gt;getQuery();
  
      return $query-&gt;select('s.*, MAX(s.score) AS max_score')-&gt;getQuery()-&gt;getResult();
  </code></pre>
  
  <p>How could I achieve this in doctrine? I am getting an error that * property is not found. I have tried to select them all one by one but no luck either.</p>
  
  <p>Goal is to achieve something like this </p>
  
  <pre><code>SELECT user, challenge, whateverelse, MAX(score) FROM users_scores_table GROUP BY user_id
  </code></pre>
  
  <p>Please help ;)</p>