[ERROR] Only annotation mapping is supported by make:entity #42525
-
I change doctrine.yaml orm type: orm:
mappings:
App:
type: annotation to: orm:
mappings:
App:
type: attribute But show this error:
How can I fix this problem? |
Beta Was this translation helpful? Give feedback.
Answered by
javiereguiluz
Aug 13, 2021
Replies: 2 comments 2 replies
-
Seems like this post could help you https://github.com/vklux/maker-bundle-force-annotation |
Beta Was this translation helpful? Give feedback.
0 replies
-
@karaka200 I'm afraid this problem cannot be fixed. We need to wait until MakerBundle merges the support of PHP attributes for entities. Check out this Pull Request to see the progress of this task: symfony/maker-bundle#920 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
karaka200
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@karaka200 I'm afraid this problem cannot be fixed. We need to wait until MakerBundle merges the support of PHP attributes for entities. Check out this Pull Request to see the progress of this task: symfony/maker-bundle#920