Skip to content

Allow multiple QueryParameter filters for the same key with different properties #8184

@aelfannir

Description

@aelfannir

Description
Right now, if you add multiple #[QueryParameter] annotations with the same key but different properties and filter types, only the last one works, it overrides the earlier ones.

In real use cases, developers often need different filters for different fields under the same key. It would make more sense if each property could have its own filter, so filters only override each other when they target the same property.

Example

#[QueryParameter(
    key: ':property',
    filter: new ExactFilter(),
    properties: ['field1', 'field2'],
)]
#[QueryParameter(
    key: ':property',
    filter: new BooleanFilter(),
    properties: ['field3', 'field4'],
)]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions