Is there any equivalent for the following SQL code in Doctrine2?
ORDER BY id DESC LIMIT 0,1
Found it! The answer is
->setMaxResults(1) ->setFirstResult(0) ->getOneOrNullResult();
Copyright © 2021 Jogjafile Inc.
Found it! The answer is