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

5.2.5 : make:entity problem #842

Closed
Yentia opened this issue Mar 20, 2021 · 3 comments
Closed

5.2.5 : make:entity problem #842

Yentia opened this issue Mar 20, 2021 · 3 comments

Comments

@Yentia
Copy link

Yentia commented Mar 20, 2021

Symfony version(s) affected: 5.2.5
**PHP version(s) used **: 7.4.16

Description
Fresh install in V 5.2.5.
I want to create my first Entity with the command : php bin/console make:entity and I got this :

[ERROR] Only annotation mapping is supported by make:entity, but the EntityName class uses a
different format. If you would like this command to generate the properties & getter/setter methods, add your
mapping configuration, and then re-run this command with the --regenerate flag.

Database connexion is fine and it's the default config by doctrine.

How to reproduce
1 - symfony new --full my_project
2 - command : php bin/console make:entity

@nicolas-grekas
Copy link
Member

This is for https://github.com/symfony/maker-bundle, transferring.

@nicolas-grekas nicolas-grekas transferred this issue from symfony/symfony Mar 20, 2021
@weaverryan
Copy link
Member

Looks like this is #843

@weaverryan
Copy link
Member

If I'm correct, you can downgrade to DoctrineBundle 2.2 to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants