generating an entity in symfony 2.8 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