I have the Entities I did in Doctrine, and I also have the DAOS, which is where those queries get.
I have an API where the user can use Query Parameters as follows:
The query returns everything but if user puts this parameter to "age = 19", it will only return users who are age = 19, so it would be easy for me to play this in a WHERE, but it would be very laborious, especially if it is passed many parameters.
Do you have any other way to do this using Doctrine?
I tried to use Filters but found the documentation a bit confusing. Can anyone help me?