-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
[ERROR] Only annotation mapping is supported by make:entity after upgrading bundles #841
Comments
Same problem here:
After downgrading doctrine/doctrine-bundle to 2.2.4 maker works fine... |
The getMetadataDriverImpl method returns different things in the two versions. In v2.2.4 it returns Doctrine\Persistence\Mapping\Driver\MappingDriverChain https://github.com/symfony/maker-bundle/blob/main/src/Doctrine/DoctrineHelper.php#L98-L110 |
Same problem with |
Same problem with clean project:
Work fine with doctrine/doctrine-bundle 2.2.4 and symfony/maker-bundle 1.30.0 |
Found problem and fix. |
Fixed now in 1.30.1 :) |
I'm still having the same issue even with 1.31.0. my PHP version is 8 if that makes any difference |
I can confirm that 1.30.2 has fixed the problem (PHP 7.4) |
@abul-wcse Can you create a simple Symfony App that reproduces this problem? |
steps to reproduce
Here is the simple Symfony app created using the above steps @jrushlow |
Still having the same issue. v1.33.0 |
We still have the issue with latest symfony version and doctrine version. |
Same issue on 1.36 with PHP 8 attributes for doctrine. |
Same issue on 1.38 with PHP 8.1 with custom root_namespace. |
Problem reappeared. I have just upgraded all bundles and with version 1.38 error appears again (PHP 8.1). Tweaking a little bit with versions showed that the reason is upgrading doctrine/orm (2.11.3 => 2.12.0) |
I'm using PHP 8.1 and after upgrading to 1.44 this bug reappeared for me again. Downgrading to 1.43 fixed it. |
Are u using attributes for you're entity mapping? |
I debugged into the error message and found out, that it uses AnnotationDriver instead of the expected AttributeDriver. Can you tell me where in my config I have to change the setting? |
Thanks, works for me ! :-) |
What also worked for me:
|
This issue comes back again on maker bundle 1.45, downgrading to 1.43 solved the issue for me |
Hello, Work fine for me! Php version 8.1.8 I have modified : Composer.json : "doctrine/doctrine-bundle": "^2.7.0" -> v2.7.0 installed And all is fine! |
This issue should be reopened or new one created.
|
Same here, have to downgrade maker-bundle from 1.45 to 1.43 |
Can Confirm. |
I confirm, it's working.
|
the problem persists, |
This new version, sorry guys, but a piece of shit. Has a number of issues and causes issues in previous Entities where annotations were used. This is not a development or improvement and doesn't give us option to annotations. |
It is super frustrating when Symfony breaks core tooling outside of the promised version lifecycles |
Remove type: annotation from doctrine.yaml |
After upgrading bundles like this:
when I try to change or add a new entity like:
php bin/console make:entity MyEntity
I get errorWhen I have downgraded to previous version it works OK.
The text was updated successfully, but these errors were encountered: