Doctrine\DBAL\Schema\Comparator::compare
Returns a SchemaDiff object containing the differences between the schemas $fromSchema and $toSchema.
The returned differences are returned in such a way that they contain the operations to change the schema stored in $fromSchema to the schema that is stored in $toSchema.
Signature
Parameters
$fromSchema
— Doctrine\DBAL\Schema\Schema
$toSchema
— Doctrine\DBAL\Schema\Schema
Returns
- SchemaDiff