I have setup the soft delete for my Store entity by using softdelete.
This is my filter setup in the doctrine.yml:
doctrine:
# ...
orm:
# ...
filters:
softdeleteable:
class: Gedmo\SoftDeleteable\Filter\SoftDeleteableFilter
enabled: true
So when I hit e.g. the URL /stores only the active stores are returned, but if I change the config to enabled: false it will give me all the results including deleted items, which is correct.
Now what I want to achieve is pass a query parameter from front-end like /stores?deleted=1 and then I want to get all the data, if no deleted=1 found only the active items