Symfony generate entity code example
Example 1: symfony doctrine existing database
$ php bin/console doctrine:mapping:import "App\Entity" annotation --path=src/Entity
Example 2: generate entities symfony
$ php bin/console doctrine:generate:entities AppBundle/Entity/Product