Skip to content

Commit

Permalink
fix: exception when using doctrine orm entity filter type without pro…
Browse files Browse the repository at this point in the history
…viding "form_options.choice_value" option (#38)
  • Loading branch information
Kreyu authored Sep 11, 2023
1 parent 619ec80 commit 4f5d078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bridge/Doctrine/Orm/Filter/Type/EntityFilterType.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function configureOptions(OptionsResolver $resolver): void
// and the EntityType form type needs to know how to convert it back to the entity object.
//
// If it's not provided, try to retrieve it from the entity metadata.
if (null === $value['choice_value'] ?? null) {
if (null === ($value['choice_value'] ?? null)) {
$identifiers = $this->doctrineRegistry
->getManagerForClass($value['class'])
?->getClassMetadata($value['class'])
Expand Down

0 comments on commit 4f5d078

Please sign in to comment.