Skip to content

Hydrahon method first not return the first result after a order by #64

@DioxideHydrogen

Description

@DioxideHydrogen

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:
Imagem do WhatsApp de 2022-11-28 à(s) 10 35 04

This was the result he bring me.
Imagem do WhatsApp de 2022-11-28 à(s) 10 35 28

This is what he need bring me:
Imagem do WhatsApp de 2022-11-28 à(s) 10 35 41

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions