php bin/console doctrine:migrations:diff

Generate a migration by comparing your current database to your mapping information.

Usage

doctrine:migrations:diff [--editor-cmd [EDITOR-CMD]] [--configuration [CONFIGURATION]] [--db-configuration [DB-CONFIGURATION]] [--filter-expression [FILTER-EXPRESSION]] [--db DB] [--em [EM]] [--shard SHARD]

Options

      --editor-cmd          Open file with this command upon creation. 
      --configuration       The path to a migrations configuration file. 
      --db-configuration    The path to a database connection configuration file. 
      --filter-expression   Tables which are filtered by Regular Expression. 
      --db                  The database connection to use for this command. 
      --em                  The entity manager to use for this command. 
      --shard               The shard connection to use for this command. 

Help

The doctrine:migrations:diff command generates a migration by comparing your current database to your mapping information:

    bin/console doctrine:migrations:diff

You can optionally specify a --editor-cmd option to open the generated file in your favorite editor:

    bin/console doctrine:migrations:diff --editor-cmd=mate