From fa1929e6315a1f4d974c1e12e2691626b2ac6fd4 Mon Sep 17 00:00:00 2001 From: Maxcastel Date: Mon, 30 Mar 2026 15:53:25 +0200 Subject: [PATCH] feat: allow Parameter attributes on properties --- core/filters.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/core/filters.md b/core/filters.md index 499022ddad1..b603cde6368 100644 --- a/core/filters.md +++ b/core/filters.md @@ -199,6 +199,35 @@ This configuration allows clients to filter events by date ranges using queries - `/events?date[startDate][after]=2023-01-01` - `/events?date[endDate][before]=2023-12-31` +### Declaring Parameters on Properties + +You can also declare parameters directly on entity properties using `#[QueryParameter]` or +`#[HeaderParameter]` attributes. This keeps your parameter definition close to the property it +affects: + +```php +