class DiffCommand extends GenerateCommand (View source)

Command for generate migration classes by comparing your current database schema to your mapping information.

Properties

protected SchemaProviderInterface $schemaProvider

Methods

configure()

No description

outputHeader(Configuration $configuration, OutputInterface $output)

No description

getMigrationConfiguration(InputInterface $input, OutputInterface $output)

When any (config) command line option is passed to the migration the migrationConfiguration property is set with the new generated configuration.

mixed
askConfirmation(string $question, InputInterface $input, OutputInterface $output)

No description

execute(InputInterface $input, OutputInterface $output)

No description

getTemplate()

No description

generateMigration(Configuration $configuration, InputInterface $input, $version, $up = null, $down = null)

No description

loadCustomTemplate(Configuration $configuration, OutputInterface $output)

No description

__construct(SchemaProviderInterface $schemaProvider = null)

No description

Details

protected configure()

protected outputHeader(Configuration $configuration, OutputInterface $output)

Parameters

Configuration $configuration
OutputInterface $output

setMigrationConfiguration(Configuration $config)

Parameters

Configuration $config

protected Configuration getMigrationConfiguration(InputInterface $input, OutputInterface $output)

When any (config) command line option is passed to the migration the migrationConfiguration property is set with the new generated configuration.

If no (config) option is passed the migrationConfiguration property is set to the value of the configuration one (if any). Else a new configuration is created and assigned to the migrationConfiguration property.

Parameters

InputInterface $input
OutputInterface $output

Return Value

Configuration

protected mixed askConfirmation(string $question, InputInterface $input, OutputInterface $output)

Parameters

string $question
InputInterface $input
OutputInterface $output

Return Value

mixed

execute(InputInterface $input, OutputInterface $output)

Parameters

InputInterface $input
OutputInterface $output

protected getTemplate()

protected generateMigration(Configuration $configuration, InputInterface $input, $version, $up = null, $down = null)

Parameters

Configuration $configuration
InputInterface $input
$version
$up
$down

protected loadCustomTemplate(Configuration $configuration, OutputInterface $output)

Parameters

Configuration $configuration
OutputInterface $output

__construct(SchemaProviderInterface $schemaProvider = null)

Parameters

SchemaProviderInterface $schemaProvider