From 37eab9b146840a00c994642de8a9117cdf8a6291 Mon Sep 17 00:00:00 2001 From: Andi Date: Wed, 15 Jan 2025 11:18:53 +0100 Subject: [PATCH] Update reading-data.md (#1652) --- guides/plugins/plugins/framework/data-handling/reading-data.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/plugins/plugins/framework/data-handling/reading-data.md b/guides/plugins/plugins/framework/data-handling/reading-data.md index 081a8d299..e7552be6d 100644 --- a/guides/plugins/plugins/framework/data-handling/reading-data.md +++ b/guides/plugins/plugins/framework/data-handling/reading-data.md @@ -162,7 +162,7 @@ E.g.: Fetch all products, whose name is `Example product`, but also return the t In that case, you can just use the `addPostFilter` instead of `addFilter`: ```php -public function readData(): void +public function readData(Context $context): void { $criteria = new Criteria(); $criteria->addPostFilter(new EqualsFilter('name', 'Example name'));