php bin/console make:entity --regenerate 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