*/ class MigrationGenerateDiffCommand extends AbstractPropelCommand { /** * @see Command */ protected function configure() { $this ->setDescription('Generates SQL diff between the XML schemas and the current database structure') ->setHelp(<<propel:migration:generate-diff command compares the current database structure and the available schemas. If there is a difference, it creates a migration file. php app/console propel:migration:generate-diff EOT ) ->setName('propel:migration:generate-diff') ; } /** * @see Command * * @throws \InvalidArgumentException When the target directory does not exist */ protected function execute(InputInterface $input, OutputInterface $output) { $this->callPhing('diff'); $this->writeSummary($output, 'propel-sql-diff'); } }