tetranz / select2entity-bundle

A Symfony2 bundle that integrates Select2 as a drop-in replacement for a standard entity field on a Symfony form.
MIT License
218 stars 111 forks source link

Argument 1 passed to Tetranz\Select2EntityBundle\Form\Type\Select2EntityType::__construct() must be an instance of Doctrine\Persistence\ManagerRegistry, instance of Doctrine\Bundle\DoctrineBundle\Registry given #177

Open INHack20 opened 3 years ago

INHack20 commented 3 years ago

Symfony 4.4.19

Constructor must accept the interface Doctrine\Common\Persistence\ManagerRegistry instead of Doctrine\Persistence\ManagerRegistry by refactor of "doctrine/persistence" in 1.2.0 or compatibilty in both.

Captura de Pantalla 2021-03-23 a la(s) 9 19 39 p  m Argument 1 passed to Tetranz\Select2EntityBundle\Form\Type\Select2EntityType::__construct() must be an instance of Doctrine\Persistence\ManagerRegistry, instance of Doctrine\Bundle\DoctrineBundle\Registry given, called in /Users/inhack20/www/freelance/pedro/SmartTT/var/cache/dev/ContainerRvBeuJy/srcApp_KernelDevDebugContainer.php on line 19594