Open npotier opened 2 days ago
Hello, and thank you for this bundle.
it would be super cool to have the ability to filter on multiple entities.
I think minor changes should allow to do so :
in Model/Form/Filter/Type/EntityFilterType.php
Model/Form/Filter/Type/EntityFilterType.php
➡️ use the option parameter to allow multiple => true
multiple => true
in Model/Form/Filter/EntityFilter.php
Model/Form/Filter/EntityFilter.php
➡️ check if multiple values are selected (if (count($form->get($index)->getData()['entity']) > 1) to switch from where xx = yy to where xx IN (yy,zz)
if (count($form->get($index)->getData()['entity']) > 1
I have already done that in my project. What do you think about a PR on this ?
Hi, thanks for the suggestion, sounds like a good idea, a PR would be appreciated if you can :+1: Thanks
Hello, and thank you for this bundle.
it would be super cool to have the ability to filter on multiple entities.
I think minor changes should allow to do so :
in
Model/Form/Filter/Type/EntityFilterType.php
➡️ use the option parameter to allow
multiple => true
in
Model/Form/Filter/EntityFilter.php
➡️ check if multiple values are selected (
if (count($form->get($index)->getData()['entity']) > 1
) to switch from where xx = yy to where xx IN (yy,zz)I have already done that in my project. What do you think about a PR on this ?