symfony doctrine migrations entitiy code example
Example 1: symfony doctrine existing database
$ php bin/console doctrine:mapping:import "App\Entity" annotation --path=src/Entity
Example 2: migration create symfony
doctrine:migrations:generate [generate] Generate a blank migration class.