class SchemaDumper (View source)

The SchemaDumper class is responsible for dumping the current state of your database schema to a migration. This is to be used in conjunction with the Rollup class.

Methods

__construct(AbstractPlatform $platform, AbstractSchemaManager $schemaManager, Generator $migrationGenerator, SqlGenerator $migrationSqlGenerator)

No description

dump(string $versionNumber, bool $formatted = false, int $lineLength = 120)

No description

Details

__construct(AbstractPlatform $platform, AbstractSchemaManager $schemaManager, Generator $migrationGenerator, SqlGenerator $migrationSqlGenerator)

Parameters

AbstractPlatform $platform
AbstractSchemaManager $schemaManager
Generator $migrationGenerator
SqlGenerator $migrationSqlGenerator

dump(string $versionNumber, bool $formatted = false, int $lineLength = 120)

Parameters

string $versionNumber
bool $formatted
int $lineLength

Exceptions

NoTablesFound