src/Entity/Order.php): failed to open stream: No such file or directory
when I tried to
make:entity
and Order, was going to be the name of my new entity.
I manually deleted an Entity named Order, a few days ago, from my Project because it didn't satisfy my needs back at the time. The Symfony application tries to autoload the old entity called Order (of which it kept track), but it doesn't exist since I deleted it. This prevents me from (re)creating a clean Order entity now.
Running a :
composer dump-autoload
A few seconds later, I was able to recreate an entity named Order without any issue. Why ? Because this command line asks Symfony to reload the classes inside the vendor directory and regenerate autoloaded files. Now that it "refreshes" the classes, it does not detect my old Order entity that must have been "cached" insided the autoload. (correct me if I explained it wrong, please)
Retrieving infos from another stackOverflow post. You may find it here : symfony make:entity crash on new project , I simply answered my own question to help others find a solution, faster, in the future.