class DiffGenerator (View source)

The DiffGenerator class is responsible for comparing two Doctrine\DBAL\Schema\Schema instances and generating a migration class with the SQL statements needed to migrate from one schema to the other.

Methods

__construct(Configuration $dbalConfiguration, AbstractSchemaManager $schemaManager, SchemaProviderInterface $schemaProvider, AbstractPlatform $platform, Generator $migrationGenerator, SqlGenerator $migrationSqlGenerator)

No description

generate(string $versionNumber, string|null $filterExpression, bool $formatted = false, int $lineLength = 120)

No description

Details

__construct(Configuration $dbalConfiguration, AbstractSchemaManager $schemaManager, SchemaProviderInterface $schemaProvider, AbstractPlatform $platform, Generator $migrationGenerator, SqlGenerator $migrationSqlGenerator)

Parameters

Configuration $dbalConfiguration
AbstractSchemaManager $schemaManager
SchemaProviderInterface $schemaProvider
AbstractPlatform $platform
Generator $migrationGenerator
SqlGenerator $migrationSqlGenerator

generate(string $versionNumber, string|null $filterExpression, bool $formatted = false, int $lineLength = 120)

Parameters

string $versionNumber
string|null $filterExpression
bool $formatted
int $lineLength

Exceptions

NoChangesDetected