From cfe2ac8650fef277572550361b4c2a3f9d5b3dee Mon Sep 17 00:00:00 2001 From: Maxcastel Date: Mon, 12 Oct 2026 12:02:18 +0200 Subject: [PATCH] feat(metadata): accept operation class names in parameter operations --- core/filters.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/filters.md b/core/filters.md index fbf442ee2c9..214f3fd8371 100644 --- a/core/filters.md +++ b/core/filters.md @@ -337,6 +337,10 @@ class Book #[QueryParameter(key: 'search', filter: new PartialSearchFilter())] private string $title = ''; + // Operations can also be given by class name + #[QueryParameter(key: 'author', filter: new PartialSearchFilter(), operations: [GetCollection::class])] + public string $author = ''; + // Applies only to GetCollection #[QueryParameter(key: 'name', filter: new PartialSearchFilter(), operations: [new GetCollection()])] public string $name = '';