When upgrading from doctrine/orm 2.7 to doctrine/orm 2.8 it is possible you get following error when creating your custom entity manager:
Class 'Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain' not found
Solution
The MappingDriverChain has been moved to another directory. Fix this error by importing from the following:
use Doctrine\Persistence\Mapping\Driver\MappingDriverChain;