DoctrineORMModule: --dry-run and --write-sql does not output the SQL statement to display.
Cause is outputWriter of doctrine/migrations is the closure of the null by default.
How can I set the closure of its own?
To try, I tried to modified as follows.
'migrations_configuration' => array(
'orm_default' => array(
'outputWriter' => call_user_func(function() {
$output = new ConsoleOutput();
return new OutputWriter(function($message) use ($output) {
$output->writeln($message);
});
}),
),
),
MigrationsConfigurationFactory.php
$configuration = new Configuration($connection, $migrationsConfig['outputWriter']);
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 16 (7 by maintainers)
👍 Had to spend a half day before I found this bug =(