Skip to content

Commit

Permalink
[Autocomplete] Fix choice_value bug - miss cache class
Browse files Browse the repository at this point in the history
  • Loading branch information
ytilotti authored Dec 11, 2023
1 parent b5292d2 commit 7a9adf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Autocomplete/src/Form/WrappedEntityTypeAutocompleter.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;
use Symfony\Bundle\SecurityBundle\Security;
use Symfony\Component\Form\ChoiceList\Factory\Cache\ChoiceLabel;
use Symfony\Component\Form\ChoiceList\Factory\Cache;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
Expand Down Expand Up @@ -89,7 +89,7 @@ public function getLabel(object $entity): string
return $this->propertyAccessor->getValue($entity, $choiceLabel);
}

if ($choiceLabel instanceof ChoiceLabel) {
if ($choiceLabel instanceof Cache\ChoiceLabel) {
$choiceLabel = $choiceLabel->getOption();
}

Expand Down

0 comments on commit 7a9adf3

Please sign in to comment.