How to use Filters in Doctrine?

Asked

Viewed 39 times

0

I have the Entities that I did in Doctrine, and I also have the DAOS, which is where the.

I have an API where the user may or may not use Query Parameters as follows:

https://minha-api.com/usuarios/? age=19

The query returns everything but if user put this parameter ai "age=19", will return only users who are age = 19, for me it would be easy to play this in a WHERE, but it would be very laborious, especially if the is passed many parameters.

Is there any other way to do this using Doctrine ?

I tried using Filters but I found the documentation a little confusing someone can help me ?

1 answer

0


Browser other questions tagged

You are not signed in. Login or sign up in order to post.