Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preloading issues #97

Open
oojacoboo opened this issue Feb 16, 2020 · 1 comment
Open

Preloading issues #97

oojacoboo opened this issue Feb 16, 2020 · 1 comment

Comments

@oojacoboo
Copy link

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.

@greg0ire greg0ire transferred this issue from doctrine/common Feb 16, 2020
@greg0ire
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants