Hydrahon
Hydrahon copied to clipboard
Hydrahon method first not return the first result after a order by
I was doing a charge system for my company. And i haved that verify if the client X already haved a charge created in the respectly YearMonth (YYYYMM).
I did the query and i asked to hydrahon class fetch all payments charges, order by (ID, DESC), and bring the first result. But instead of he give me first result of ordering, he bringed to me first result before ordering!
This was the query methods:
This was the result he bring me.
This is what he need bring me: