From b281ffeae6353f3aa65456e3995a487533764a9a Mon Sep 17 00:00:00 2001 From: Libor Matasek Date: Wed, 22 Aug 2018 10:10:37 +0200 Subject: [PATCH] Doc - 'entry_type' option value correction --- Resources/doc/working-with-the-bundle.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources/doc/working-with-the-bundle.md b/Resources/doc/working-with-the-bundle.md index 1667210..e77303d 100644 --- a/Resources/doc/working-with-the-bundle.md +++ b/Resources/doc/working-with-the-bundle.md @@ -398,7 +398,7 @@ class ItemFilterType extends AbstractType $builder->add('rank', Filters\NumberFilterType::class); $builder->add('options', Filters\CollectionAdapterFilterType::class, array( - '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 @@ -441,7 +441,7 @@ class ItemFilterType extends AbstractType $builder->add('rank', Filters\NumberFilterType::class); $builder->add('options', Filters\CollectionAdapterFilterType::class, array( - 'entry_type' => new OptionsFilterType(), + 'entry_type' => OptionsFilterType::class, 'add_shared' => function (FilterBuilderExecuterInterface $qbe) { $closure = function (Builder $filterBuilder, $alias, $joinAlias, Expr $expr) { // Here you can manipulate the MongoDB query builder if needed.