Bonjour,
je veux créer une entité et je rencontre l'erreur suivante:
C:\Users\Utilisateur\Desktop\musee>symfony console make:entity
Class name of the entity to create or update (e.g. FiercePuppy):
pin
Your entity already exists! So let's add some new fields!
New property name (press <return> to stop adding fields):
p
[error] Error thrown while running command "make:entity". Message: "Argument 2 passed to Symfony\Bundle\MakerBundle\Validator::validateDoctrineFieldName() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Doctrine\Bundle\DoctrineBundle\Registry given, called in C:\Users\Utilisateur\Desktop\musee\vendor\symfony\maker-bundle\src\Maker\MakeEntity.php on line 303"
In Validator.php line 158:
Argument 2 passed to Symfony\Bundle\MakerBundle\Validator::validateDoctrineFieldName() must be an instance of Doctrine\Common\Persistence\Mana
gerRegistry, instance of Doctrine\Bundle\DoctrineBundle\Registry given, called in C:\Users\Utilisateur\Desktop\musee\vendor\symfony\maker-bund
le\src\Maker\MakeEntity.php on line 303
make:entity [-a|--api-resource] [--regenerate] [--overwrite] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<name>]
2020-08-25T19:29:33+00:00 [critical] Uncaught Error: Argument 2 passed to Symfony\Bundle\MakerBundle\Validator::validateDoctrineFieldName() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Doctrine\Bundle\DoctrineBundle\Registry given, called in C:\Users\Utilisateur\Desktop\musee\vendor\symfony\maker-bundle\src\Maker\MakeEntity.php on line 303
exit status 255