symfony 4 create entities from database code example
Example: generate entities symfony
$ php bin/console doctrine:generate:entities AppBundle/Entity/Product
$ php bin/console doctrine:generate:entities AppBundle/Entity/Product