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'],
)]
Description
Right now, if you add multiple
#[QueryParameter]annotations with the samekeybut differentpropertiesand 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'], )]