Skip to content

Cannot create Doctrine\ORMEntityManager instance, inheritance error #10186

Discussion options

You must be logged in to vote

There's something odd here. The signature of the AbstractProxyFactory::skipClass() method in doctrine/common 3.4.3 looks like this:

abstract protected function skipClass(\Doctrine\Persistence\Mapping\ClassMetadata $metadata);

Now, your error message prints the following signature:

Doctrine\Common\Proxy\AbstractProxyFactory::skipClass(Doctrine\Common\Persistence\Mapping\ClassMetadata $metadata)

Note that the namespace of the ClassMetadata class is different. That's an old namespace that we don't use anymore for quite a while now. I don't know where the AbstractProxyFactory class you are using is coming from, but I can tell for sure it's not the one from the doctrine/common 3.4.3 package.

I…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Vitsen15
Comment options

Answer selected by derrabus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #10184 on October 27, 2022 06:52.