-
-
Notifications
You must be signed in to change notification settings - Fork 881
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
Doctrine ORM 3 support #6199
Comments
Hello, same problem, downgrade doctrine/orm to 2.18 and it's work ! |
I was bitten by this trying to disable the autoincrement on my entities during an import from another system. This is the code to reproduce the problem: use Doctrine\ORM\Mapping\ClassMetadata;
$this->entityManager
->getClassMetadata('myClass')
->setIdGeneratorType(ClassMetadata::GENERATOR_TYPE_NONE); The same code, working perfectly with with 2.x, was: use Doctrine\ORM\Mapping\ClassMetadataInfo;
$this->entityManager
->getClassMetadata('myClass')
->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_NONE); |
Arturas0
referenced
this issue
in Arturas0/legal-entity-data
Feb 25, 2024
alzee
referenced
this issue
in alzee/river
Feb 26, 2024
soyuka
changed the title
Attempted to load class \"ClassMetadataInfo\" from namespace \"Doctrine\\ORM\\Mapping\".\nDid you forget a \"use\" statement for another namespace?
Doctrine ORM 3 support
Mar 5, 2024
This misses doctrine/dbal v4 support :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
API Platform version(s) affected: 3.1.16
Description
The doctrine/orm package version v3.* introduces breaking changes.
How to reproduce
Possible Solution
Set an upper version limit for the doctrine/orm package in composer.lock to v2.18.
Additional Context
This issue affects all versions which contain the require block "doctrine/orm": "^2.14" in composer.lock.
The text was updated successfully, but these errors were encountered: