From 4f5d07846cc589d672cfd2f8017ad40b08329f21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Wr=C3=B3blewski?= Date: Mon, 11 Sep 2023 13:09:11 +0200 Subject: [PATCH] fix: exception when using doctrine orm entity filter type without providing "form_options.choice_value" option (#38) --- src/Bridge/Doctrine/Orm/Filter/Type/EntityFilterType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bridge/Doctrine/Orm/Filter/Type/EntityFilterType.php b/src/Bridge/Doctrine/Orm/Filter/Type/EntityFilterType.php index 81a667e5..54426447 100755 --- a/src/Bridge/Doctrine/Orm/Filter/Type/EntityFilterType.php +++ b/src/Bridge/Doctrine/Orm/Filter/Type/EntityFilterType.php @@ -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'])