Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Doc - 'entry_type' option value correction #298

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Resources/doc/working-with-the-bundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down