Ao tentar dar o comando php commands\criar-aluno.php aparece o seguinte erro:
PHP Warning: Undefined array key 1 in C:\Users\Douglas\Desktop\Sites_e_Projetos\Alura\PHP\DoctrineORM\commands\criar-aluno.php on line 9
Warning: Undefined array key 1 in C:\Users\Douglas\Desktop\Sites_e_Projetos\Alura\PHP\DoctrineORM\commands\criar-aluno.php on line 9 PHP Fatal error: Uncaught TypeError: Alura\Doctrine\Entity\Aluno::setNome(): Argument #1 ($nome) must be of type string, null given, called in C:\Users\Douglas\De sktop\Sites_e_Projetos\Alura\PHP\DoctrineORM\commands\criar-aluno.php on line 9 and defined in C:\Users\Douglas\Desktop\Sites_e_Projetos\Alura\PHP\DoctrineORM\srcEntity\Aluno.php:31 Stack trace:
#0 C:\Users\Douglas\Desktop\Sites_e_Projetos\Alura\PHP\DoctrineORM\commands\criar-aluno.php(9): Alura\Doctrine\Entity\Aluno->setNome(NULL)
#1 {main} thrown in C:\Users\Douglas\Desktop\Sites_e_Projetos\Alura\PHP\DoctrineORM\src\Entity\Aluno.php on line 31
Fatal error: Uncaught TypeError: Alura\Doctrine\Entity\Aluno::setNome(): Argument #1 ($nome) must be of type string, null given, called in C:\Users\Douglas\Desktop \Sites_e_Projetos\Alura\PHP\DoctrineORM\commands\criar-aluno.php on line 9 and defined in C:\Users\Douglas\Desktop\Sites_e_Projetos\Alura\PHP\DoctrineORM\src\Entit y\Aluno.php:31 Stack trace:
#0 C:\Users\Douglas\Desktop\Sites_e_Projetos\Alura\PHP\DoctrineORM\commands\criar-aluno.php(9): Alura\Doctrine\Entity\Aluno->setNome(NULL)
#1 {main} thrown in C:\Users\Douglas\Desktop\Sites_e_Projetos\Alura\PHP\DoctrineORM\src\Entity\Aluno.php on line 31
Cheguei inclusive a copiar o projeto da aula e com o código idêntico da esse erro.