Skip to content

Conversation

whataboutpereira
Copy link

Check valid field names are used in orderBy parameter of findBy and findOneBy repository methods (issue #674).

Unfortunately this won't catch a nested call like this:

    public function findAll(array $orderBy = ['name' => 'ASC']): array
    {
        return $this->findBy([], $orderBy);
    }

@whataboutpereira whataboutpereira force-pushed the check-findBy-order-by-fields branch from e27b1ee to 5df2683 Compare September 22, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant