How to use Filters in Doctrine?

0

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:

  

link

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?

    
asked by anonymous 21.09.2017 / 14:46

1 answer

0

To solve this problem I used the doctrine filter collection.

link: link

    
19.06.2018 / 14:25