Can I limit in a subquery without using query builder? Example:
$results = $em->createQuery('
SELECT d
FROM FLIContractBundle:DieselPrice d
WHERE d.date = (
SELECT p.date
FROM FLIContractBundle:DieselPrice p
ORDER BY p.date DESC
LIMIT 1
)
')->getResult();