doctrine create entity from existing table code example
Example: symfony doctrine existing database
$ php bin/console doctrine:mapping:import "App\Entity" annotation --path=src/Entity
$ php bin/console doctrine:mapping:import "App\Entity" annotation --path=src/Entity