1717use Doctrine \Persistence \ManagerRegistry ;
1818use Doctrine \Persistence \Mapping \MappingException ;
1919use Doctrine \Persistence \Proxy ;
20+ use Symfony \Bridge \Doctrine \Form \Type \EntityType ;
2021use Symfony \Component \Form \Extension \Core \Type \CheckboxType ;
2122use Symfony \Component \Form \Extension \Core \Type \CollectionType ;
2223use Symfony \Component \Form \Extension \Core \Type \DateIntervalType ;
@@ -49,7 +50,7 @@ public function __construct(ManagerRegistry $registry)
4950 public function guessType (string $ class , string $ property ): ?TypeGuess
5051 {
5152 if (!$ ret = $ this ->getMetadata ($ class )) {
52- return new TypeGuess (' Symfony\Component\Form\Extension\Core\Type\ TextType' , [], Guess::LOW_CONFIDENCE );
53+ return new TypeGuess (TextType::class , [], Guess::LOW_CONFIDENCE );
5354 }
5455
5556 [$ metadata , $ name ] = $ ret ;
@@ -58,7 +59,7 @@ public function guessType(string $class, string $property): ?TypeGuess
5859 $ multiple = $ metadata ->isCollectionValuedAssociation ($ property );
5960 $ mapping = $ metadata ->getAssociationMapping ($ property );
6061
61- return new TypeGuess (' Symfony\Bridge\Doctrine\Form\Type\ EntityType' , ['em ' => $ name , 'class ' => $ mapping ['targetEntity ' ], 'multiple ' => $ multiple ], Guess::HIGH_CONFIDENCE );
62+ return new TypeGuess (EntityType::class , ['em ' => $ name , 'class ' => $ mapping ['targetEntity ' ], 'multiple ' => $ multiple ], Guess::HIGH_CONFIDENCE );
6263 }
6364
6465 return match ($ metadata ->getTypeOfField ($ property )) {
0 commit comments