symfony make:entity crash on new project

Viewed 3379

Whenever I try to create an entity with bin/console make:entity, I get the following result:

php bin/console make:entity

 Class name of the entity to create or update (e.g. FierceElephant):
 > Video


In DebugClassLoader.php line 337:

  Warning: include(/home/user/work/project1/vendor/composer/../../src/Entity/Video.php): failed to open stream: No such file or directory  

This project is very new and there is very few code at the moment; It's the first entity I try to create in the project. I don't get why I get this since it's obvious that the file does not exist since I want to create it... I haven't found similar problem on google. Maybe I forgot to activate a php extension?

Any idea?

1 Answers

Might need to composer dump-autoload if you've messed up and removed some classes by hand.

Related