I want to write a DQL query with Doctrine that allow me to find lowest integer available in a specific column.
Table(ABC)
A B
----------------
0 M
1 P
2 T
4 X
5 L
7 C
I want a single scalar result. In this case, (SELECT LowestValueAvailable(A) FROM ABC) = 3.
I know how to write it in basic SQL, but I can't figure this out in DQL. This would be the exact SQL request I want to DQLize : Find the smallest unused number in SQL Server
Thank you.