Categories
PHP

Class ‘Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain’ not found

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

The MappingDriverChain has been moved to another directory, it should be imported from:

use Doctrine\Persistence\Mapping\Driver\MappingDriverChain;

Leave a Reply

Your email address will not be published. Required fields are marked *