mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Cannot create Doctrine\ORMEntityManager instance, inheritance error. #7067
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Vitsen15 on GitHub (Oct 26, 2022).
Bug Report
composer.json content:
Summary
Getting Inheritance error when trying to create entity manager:
EntityManager::create($connection, $config);Current behavior
When I'm trying to create EntityManager instance, I get the next error:
How to reproduce
Create
\Doctrine\ORM\Configurationobject instance:Then creating the
\Doctrine\DBAL\Connection:And to create
Doctrine\ORMEntityManagerinstance:$entityManager = EntityManager::create($connection, $config);After this, error is occurred.
Expected behaviour
Doctrine\ORMEntityManagerto be created.@derrabus commented on GitHub (Oct 26, 2022):
Can you please show the output of
composer show | grep doctrine?@Vitsen15 commented on GitHub (Oct 26, 2022):
@derrabus, pls see the output of
composer show | grep doctrine:@derrabus commented on GitHub (Oct 27, 2022):
There's something odd here. The signature of the
AbstractProxyFactory::skipClass()method in doctrine/common 3.4.3 looks like this:Now, your error message prints the following signature:
Note that the namespace of the
ClassMetadataclass is different. That's an old namespace that we don't use anymore for quite a while now. I don't know where theAbstractProxyFactoryclass 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'm moving this issue to support now because it's apparently not a bug on our side.