You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just updated from v2.2.1 to 3.0.1, and after following the steps in the UPDGRADE guide, it throws this error when trying to run any of the CLI commands:
In InvalidConfigurationKey.php line 15:
[Doctrine\Migrations\Configuration\Migration\Exception\InvalidConfigurationKey (10)]
Migrations configuration key "name" does not exist.
Exception trace:
at /project/vendor/doctrine/migrations/lib/Doctrine/Migrations/Configuration/Migration/Exception/InvalidConfigurationKey.php:15
Doctrine\Migrations\Configuration\Migration\Exception\InvalidConfigurationKey::new() at /project/vendor/doctrine/migrations/lib/Doctrine/Migrations/Configuration/Migration/ConfigurationArray.php:83
Doctrine\Migrations\Configuration\Migration\ConfigurationArray::applyConfigs() at /project/vendor/doctrine/migrations/lib/Doctrine/Migrations/Configuration/Migration/ConfigurationArray.php:65
Doctrine\Migrations\Configuration\Migration\ConfigurationArray->getConfiguration() at /project/vendor/doctrine/migrations/lib/Doctrine/Migrations/Configuration/Migration/PhpFile.php:34
Doctrine\Migrations\Configuration\Migration\PhpFile->getConfiguration() at /project/vendor/doctrine/migrations/lib/Doctrine/Migrations/Configuration/Migration/FormattedFile.php:53
Doctrine\Migrations\Configuration\Migration\FormattedFile->getConfiguration() at /project/vendor/doctrine/migrations/lib/Doctrine/Migrations/Configuration/Migration/ConfigurationFileWithFallback.php:64
Doctrine\Migrations\Configuration\Migration\ConfigurationFileWithFallback->loadConfiguration() at /project/vendor/doctrine/migrations/lib/Doctrine/Migrations/Configuration/Migration/ConfigurationFileWithFallback.php:47
Doctrine\Migrations\Configuration\Migration\ConfigurationFileWithFallback->getConfiguration() at /project/vendor/doctrine/migrations/lib/Doctrine/Migrations/DependencyFactory.php:154
Doctrine\Migrations\DependencyFactory->getConfiguration() at /project/vendor/doctrine/migrations/lib/Doctrine/Migrations/DependencyFactory.php:130
Doctrine\Migrations\DependencyFactory->freeze() at /project/vendor/doctrine/migrations/lib/Doctrine/Migrations/Tools/Console/Command/DoctrineCommand.php:84
Doctrine\Migrations\Tools\Console\Command\DoctrineCommand->initialize() at /project/vendor/symfony/console/Command/Command.php:224
Symfony\Component\Console\Command\Command->run() at /project/vendor/symfony/console/Application.php:911
Symfony\Component\Console\Application->doRunCommand() at /project/vendor/symfony/console/Application.php:264
Symfony\Component\Console\Application->doRun() at /project/vendor/symfony/console/Application.php:140
Symfony\Component\Console\Application->run() at /project/vendor/doctrine/migrations/lib/Doctrine/Migrations/Tools/Console/ConsoleRunner.php:94
Doctrine\Migrations\Tools\Console\ConsoleRunner::run() at /project/vendor/doctrine/migrations/bin/doctrine-migrations.php:43
Doctrine\Migrations\{closure}() at /project/vendor/doctrine/migrations/bin/doctrine-migrations.php:44
require() at /project/vendor/doctrine/migrations/bin/doctrine-migrations:8
The thing is that if I remove the name option from my configuration, then everything works as expected. In fact I don't really know what is this config option used for, but there's no reference anywhere saying this option is no longer supported, which makes me think this is not an intendeed behavior.
Digging a bit in the code I've seen that the error occurs because consumed config is matched against another array which does not contain the name key. This happens in Doctrine\Migrations\Configuration\Migration\ConfigurationArray::applyConfigs.
Doesn't seem to be super critical. Just letting you know and leaving this here in case someone else experiences the same.
The text was updated successfully, but these errors were encountered:
Support Question
I have just updated from v2.2.1 to 3.0.1, and after following the steps in the UPDGRADE guide, it throws this error when trying to run any of the CLI commands:
The thing is that if I remove the
name
option from my configuration, then everything works as expected. In fact I don't really know what is this config option used for, but there's no reference anywhere saying this option is no longer supported, which makes me think this is not an intendeed behavior.Digging a bit in the code I've seen that the error occurs because consumed config is matched against another array which does not contain the
name
key. This happens inDoctrine\Migrations\Configuration\Migration\ConfigurationArray::applyConfigs
.Doesn't seem to be super critical. Just letting you know and leaving this here in case someone else experiences the same.
The text was updated successfully, but these errors were encountered: