How to get the file Doctrine\Common\Persistence\ObjectManager

302 Views Asked by At

I have a project on Symfony 4.4 and I use a bundle that needs this ObjectManager. The thing is, the namespace used in the vendor in FOSUser indicates that it needs Doctrine\Common\Persistence\ObjectManager, when in my project I only have Doctrine\Persistence\Object. Since I can't modifiy the file in the vendor, how can I get it to work? How can I get the Doctrine\Common\Persistence\ObjectManager or tell the FOSUser UserManager to use Doctrine\Persistence\Object instead of Doctrine\Common\Persistence\ObjectManager? Thanks

0

There are 0 best solutions below