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.