From 87426de50bc5f2db2b20ed385dcbe5e1e18f534e Mon Sep 17 00:00:00 2001 From: Bart Heyrman Date: Fri, 20 Sep 2024 09:46:26 +0200 Subject: [PATCH] Update working-with-the-bundle.md (#32) --- Resources/doc/working-with-the-bundle.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/doc/working-with-the-bundle.md b/Resources/doc/working-with-the-bundle.md index 671fd45..a5bca4f 100644 --- a/Resources/doc/working-with-the-bundle.md +++ b/Resources/doc/working-with-the-bundle.md @@ -306,7 +306,7 @@ class ItemFilterType extends AbstractType $builder->add('rank', Filters\NumberFilterType::class); $builder->add('options', Filters\CollectionAdapterFilterType::class, [ - 'entry_type' => new OptionsFilterType(), + 'entry_type' => OptionsFilterType::class, 'add_shared' => function (FilterBuilderExecuterInterface $qbe) { $closure = function (QueryBuilder $filterBuilder, $alias, $joinAlias, Expr $expr) { // add the join clause to the doctrine query builder