class SchemaDiffProvider implements SchemaDiffProviderInterface (View source)

The SchemaDiffProvider class is responsible for providing a Doctrine\DBAL\Schema\Schema instance that represents the current state of your database. A clone of this Schema instance is passed to each of your migrations so that you can manipulate the Schema object. Your manipulated Schema object is then compared to the original Schema object to produce the SQL statements that need to be executed.

Methods

__construct(AbstractSchemaManager $schemaManager, AbstractPlatform $platform)

No description

createFromSchema()

No description

createToSchema(Schema $fromSchema)

No description

string[]
getSqlDiffToMigrate(Schema $fromSchema, Schema $toSchema)

No description

Details

__construct(AbstractSchemaManager $schemaManager, AbstractPlatform $platform)

Parameters

AbstractSchemaManager $schemaManager
AbstractPlatform $platform

createFromSchema()

createToSchema(Schema $fromSchema)

Parameters

Schema $fromSchema

string[] getSqlDiffToMigrate(Schema $fromSchema, Schema $toSchema)

Parameters

Schema $fromSchema
Schema $toSchema

Return Value

string[]