Open fabpico opened 1 year ago
Remove type: annotation from doctrine.yaml
@vipinbose I don't have such configuration in doctrine.yaml.
In case anyone finds this useful, I ran into the same issue. By adding the file config/packages/maker.yaml
with the following content:
when@dev:
maker:
root_namespace: Acme\Your\Namespace
Solved the issue for me.
I want to use
make:user
as in https://symfony.com/doc/current/security.html#the-user.I have PHP 8.1.11. My composer.json:
When I make
I receive
I assume this is a Flex alias. Because when I do:
I receive
I propose to directly suggest the needed package, to be friendly with non-Flex users. So when I do (after removing composer.lock):
I can use make:user until this happens
So I go the other way around and configure the ORM first https://symfony.com/doc/current/doctrine.html . It says I have to install:
Already done.
DBAL connection works, tested with temporary call in controller:
Now I try out
make:entity
(just to test ORM)https://symfony.com/doc/current/doctrine.html#creating-an-entity-class
Still I get
I suggest that a minimum ORM configuration is described in this make:entity documentation, or a least a direct link to another documentation page to quickly configure ORM. As in https://stackoverflow.com/questions/35810105/doctrine-orm-manager-named-does-not-exist I tried
I run make:entity again, I receive
https://stackoverflow.com/a/73145112/4840661 /which relates to https://github.com/symfony/maker-bundle/issues/1152 and https://github.com/symfony/maker-bundle/issues/841), suggest to downgrade to symfony/maker-bundle:1.43 .
I try again with v1.43, I receive a similar message
Back to make:user, assuming that at least the ORM is configured correctly, I receive (among other things)
The way until this success message was very laborious, it should be more easy and straightforward.
Summarized
Other people also still complain about the annotation error message, even after closing the issue https://github.com/symfony/maker-bundle/issues/841#issuecomment-1228537605 .