lexik / LexikTranslationBundle

This Symfony bundle allow to import translation files content into the database and provide a GUI to edit translations.
MIT License
425 stars 262 forks source link

Fix returning all data when no result found #458

Closed raziel057 closed 3 months ago

raziel057 commented 3 months ago

This PR fix the current behavior that returns all data when the search criteria lead to no matching results. Currently if the matching ids count is 0 no where clause is added.

This PR add a clause that will never matches in that case to return no data.

With the fix when the search doesn't matches, we have an empty list:

343191040-29dc9102-be16-40d7-b45e-a210abbfdfa7