Using Dotrine filters as we use Laravel Eloquent filters. Example using a BooleanFilter with Symfony and Doctrine:
#[ApiResource]
#[GetCollection(
parameters: [
'active' => new QueryParameter(
filter: new BooleanFilter(),
),
// support also for filter aliasing
'enabled' => new QueryParameter(
filter: new BooleanFilter(),
property: 'active',
),
],
)]
#[ORM\Entity]
class FilteredBooleanParameter {
// ...
}
main
Completes #6749.
Goal:
Using Dotrine filters as we use Laravel Eloquent filters. Example using a
BooleanFilter
with Symfony and Doctrine:TODO:
Will be done in another PR: