persistence icon indicating copy to clipboard operation
persistence copied to clipboard

Preloading issues

Open oojacoboo opened this issue 4 years ago • 1 comments

I'm unable to preload from opcache hits list due to the following 2 conflicts:

api-php         | Message: Cannot declare class Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain, because the name is already in use in /srv/www/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php:9 ErrorException called
api-php         | File: /srv/www/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php
api-php         | Message: Cannot declare class Doctrine\Common\Persistence\Mapping\RuntimeReflectionService, because the name is already in use in /srv/www/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php:9 ErrorException called
api-php         | File: /srv/www/vendor/doctrine/persistence/lib/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php

When looking at the MappingDriverChain, it looks like there is some BC work being done by creating a class alias. It looks really nasty to me, so I'm not surprised by this error.

oojacoboo avatar Feb 16 '20 18:02 oojacoboo

Thanks for reporting this. I'm the author of the BC-layer, and am already aware of the issue, but have not found a solution yet. There is some discussion about it here if you are interested.

greg0ire avatar Feb 16 '20 19:02 greg0ire