Symfony there are no commands defined in the "make" namespace

lola_the_coding_girl picture lola_the_coding_girl · Dec 21, 2017 · Viewed 30.5k times · Source

Following the documentation found here I enter php bin/console make:entity Product in Terminal and get the following error:

[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the "make" namespace.

Answer

sensorario picture sensorario · Dec 21, 2017

make is a command of doctrine component. Just add doctrine maker.

composer require doctrine maker

https://symfony.com/doc/current/doctrine.html#installing-doctrine