php bin/console doctrine:migrations:diff

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

Usage

doctrine:migrations:diff [--configuration CONFIGURATION] [--em EM] [--conn CONN] [--namespace NAMESPACE] [--filter-expression FILTER-EXPRESSION] [--formatted] [--line-length LINE-LENGTH] [--check-database-platform [CHECK-DATABASE-PLATFORM]] [--allow-empty-diff] [--from-empty-schema]

Options

      --configuration             The path to a migrations configuration file. <comment>[default: any of migrations.{php,xml,json,yml,yaml}]</comment> 
      --em                        The name of the entity manager to use. 
      --conn                      The name of the connection to use. 
      --namespace                 The namespace to use for the migration (must be in the list of configured namespaces) 
      --filter-expression         Tables which are filtered by Regular Expression. 
      --formatted                 Format the generated SQL. 
      --line-length               Max line length of unformatted lines. 
      --check-database-platform   Check Database Platform to the generated code. 
      --allow-empty-diff          Do not throw an exception when no changes are detected. 
      --from-empty-schema         Generate a full migration as if the current database was empty. 

Help

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

    bin/console doctrine:migrations:diff