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

Class Doctrine\Common\Proxy\AbstractProxyFactory does not exist #29390

QuentinCurtet opened this Issue Nov 30, 2018 · 3 comments


None yet
3 participants
Copy link

QuentinCurtet commented Nov 30, 2018

Symfony version(s) affected: 4.2.0

When upgrading to Symfony 4.2.0 via composer, the error "Class Doctrine\Common\Proxy\AbstractProxyFactory does not exist" appears.

This is due to the fact that the file Doctrine\Bundle\DoctrineBundle\DependencyInjection\Configuration.php (line 667), has reflection with the concerned class, but this class is no longer integrated in doctrine/dbal package (in latest version 2.8), but it's in the doctrine/common package.

How to reproduce
Create a symfony project in 4.1.8 with doctrine dbal in dependency (and only that doctrine package).
Update to symfony 4.2.

Possible Solution
Add the doctrine/common package in composer.json.


This comment has been minimized.

Copy link

webnet-fr commented Nov 30, 2018

Hi @QuentinCurtet.

The problem is not in Symfony. It is DoctrineBundle that cannot be configured without doctrine/common being installed and it clearly seems like a bug.

In fact as far as I know you don't need doctrine/common if you're only using doctrine/dbal. Nevertheless you are not able to configure the DoctrineBundle without it.

I will open PR there to discuss possible solutions.



This comment has been minimized.

Copy link

QuentinCurtet commented Nov 30, 2018

Hi @webnet-fr

Thanks for your answer, i was not sure if the problem was in Symfony or not, because it was on the symfony upgrade and not on the doctrine dbal upgrade.

Thanks for the PR, i will take a look at it.


This comment has been minimized.

Copy link

nicolas-grekas commented Nov 30, 2018

Thank you all for your help here. Closing as this is not a Symfony issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.