Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

Erro ao executar o comando vendor\bin\doctrine-migrations

Na aula 4 do Módulo 4 do curso de Doctrine ORM, ao executar o comando vendor\bin\doctrine-migrations ele me retorna os seguinte erros

PHP Fatal error:  Uncaught Doctrine\Migrations\Configuration\Migration\Exception\InvalidConfigurationKey: Migrations configuration key "name" does not exist. in C:\Users\Layane Tavares\Documents\Alura\Formação PHP\Doctrine-ORM\vendor\doctrine\migrations\lib\Doctrine\Migrations\Configuration\Migration\Exception\InvalidConfigurationKey.php:16
Stack trace:
#0 C:\Users\Layane Tavares\Documents\Alura\Formação PHP\Doctrine-ORM\vendor\doctrine\migrations\lib\Doctrine\Migrations\Configuration\Migration\ConfigurationArray.php(88): Doctrine\Migrations\Configuration\Migration\Exception\InvalidConfigurationKey::new('name')
#1 C:\Users\Layane Tavares\Documents\Alura\Formação PHP\Doctrine-ORM\vendor\doctrine\migrations\lib\Doctrine\Migrations\Configuration\Migration\ConfigurationArray.php(70): Doctrine\Migrations\Configuration\Migration\ConfigurationArray::applyConfigs(Array, Object(Doctrine\Migrations\Configuration\Configuration), Array)
#2 C:\Users\Layane Tavares\Documents\Alura\Formação PHP\Doctrine-ORM\vendor\doctrine\migrations in C:\Users\Layane Tavares\Documents\Alura\Formação PHP\Doctrine-ORM\vendor\doctrine\migrations\lib\Doctrine\Migrations\Configuration\Migration\Exception\InvalidConfigurationKey.php on line 16

Fatal error: Uncaught Doctrine\Migrations\Configuration\Migration\Exception\InvalidConfigurationKey: Migrations configuration key "name" does not exist. in C:\Users\Layane Tavares\Documents\Alura\Formação PHP\Doctrine-ORM\vendor\doctrine\migrations\lib\Doctrine\Migrations\Configuration\Migration\Exception\InvalidConfigurationKey.php:16
Stack trace:
#0 C:\Users\Layane Tavares\Documents\Alura\Formação PHP\Doctrine-ORM\vendor\doctrine\migrations\lib\Doctrine\Migrations\Configuration\Migration\ConfigurationArray.php(88): Doctrine\Migrations\Configuration\Migration\Exception\InvalidConfigurationKey::new('name')
#1 C:\Users\Layane Tavares\Documents\Alura\Formação PHP\Doctrine-ORM\vendor\doctrine\migrations\lib\Doctrine\Migrations\Configuration\Migration\ConfigurationArray.php(70): Doctrine\Migrations\Configuration\Migration\ConfigurationArray::applyConfigs(Array, Object(Doctrine\Migrations\Configuration\Configuration), Array)
#2 C:\Users\Layane Tavares\Documents\Alura\Formação PHP\Doctrine-ORM\vendor\doctrine\migrations in C:\Users\Layane Tavares\Documents\Alura\Formação PHP\Doctrine-ORM\vendor\doctrine\migrations\lib\Doctrine\Migrations\Configuration\Migration\Exception\InvalidConfigurationKey.php on line 16

Este é o arquivo migrations.php

<?php

return [
    'name' => 'Fundamentos Doctrine',
    'migrations_namespace' => 'Alura\\Doctrine\\Migrations',
    'table_name' => 'doctrine_migration_versions',
    'column_name' => 'version',
    'column_length' => 14,
    'executed_at_column_name' => 'executed_at',
    'migrations_directory' => 'src/Migrations',
    'all_or_nothing' => true,
];
3 respostas
solução!

já consegui resolver

como voce resolveu Antonio ?

Como resolveu?