metaclass-nl / filter-bundle

Filter bundle for API Platform, Filter Logic
MIT License
50 stars 9 forks source link

Fix when no where filter is used, don't apply #13

Closed michielkalle closed 1 year ago

michielkalle commented 1 year ago

This fixes the default WHERE if empty. If i do not filter I got an Doctrine error, example: SELECT o, drivingRoutes_a1, openingHours_a2, openingHoursExceptions_a3 FROM App\\Entity\\Location o LEFT JOIN o.drivingRoutes drivingRoutes_a1 LEFT JOIN o.openingHours openingHours_a2 LEFT JOIN o.openingHoursExceptions openingHoursExceptions_a3 WHERE ORDER BY o.id ASC As you can see the WHERE is empty.

Can you hotfix this? Dankjewel :)

metaclass-nl commented 1 year ago

Thanks!