Skip to content

Fields are not checked in orderBy in findBy/findOneBy functions #674

@whataboutpereira

Description

@whataboutpereira

While checking fields in the criteria of findBy and findOneBy functions works nicely, I notice mistyped field names in orderBy are being ignored.

$this->findBy([], ['dates' => 'desc']); will happily pass when the actual field is date.

Would it be hard to add field checking for orderBy in those repository functions?

Thanks!

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