Correct way to do a migrations diff
问题 I'm trying to perform a migrations diff between the schema yaml file and my database, using the following code $migration = new Doctrine_Migration($migrationsPath); $diff = new Doctrine_Migration_Diff(null, $yamlSchemaPath, $migration); $changes = $diff->generateMigrationClasses(); $numChanges = count($changes, true) - count($changes); From what I gather, $from = null here would imply that the from in comparison will be read from the database, but that does not seem to be the case. Reading