1

I would like to make this with Doctrine 2 :

SELECT *, 
 (SELECT action FROM operations_history
         WHERE timesheet.id = operations_history.timesheet_id
         ORDER BY operations_history.created DESC 
          LIMIT 1) as status 
FROM timesheet; 

Any Help? I would like to do it with createQueryBuilder(); if possible. Thanks.

pmoubed
  • 3,842
  • 10
  • 37
  • 60
  • 1
    See [here](http://stackoverflow.com/questions/10762586/how-to-convert-this-to-doctrine-2-querybuilder-format). – Mick Feb 04 '13 at 14:59

0 Answers0