Skip to content

Entity Filter with multiple option #22

@npotier

Description

@npotier

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions