Estou tentando rodar o php commands\criar-aluno.php e está acusando o seguinte erro:
C:\Users\Larissa\Desktop\doctrine>php commands\criar-aluno.php
PHP Fatal error: Uncaught Doctrine\ORM\ORMException: Entity of type Alura\Doctrine\Entity\Aluno is missing an assigned ID for field 'id'. The identifier generation strategy for this entity requires the ID field to be populated before EntityManager#persist() is called. If you want automatically generated identifiers instead you need to adjust the metadata mapping accordingly. in C:\Users\Larissa\Desktop\doctrine\vendor\doctrine\orm\lib\Doctrine\ORM\ORMException.php:87
Stack trace:
#0 C:\Users\Larissa\Desktop\doctrine\vendor\doctrine\orm\lib\Doctrine\ORM\Id\AssignedGenerator.php(53): Doctrine\ORM\ORMException::entityMissingAssignedIdForField(Object(Alura\Doctrine\Entity\Aluno), 'id')
#1 C:\Users\Larissa\Desktop\doctrine\vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php(937): Doctrine\ORM\Id\AssignedGenerator->generate(Object(Doctrine\ORM\EntityManager), Object(Alura\Doctrine\Entity\Aluno))
#2 C:\Users\Larissa\Desktop\doctrine\vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php(1768): Doctrine\ORM\UnitOfWork->persistNew(Objec in C:\Users\Larissa\Desktop\doctrine\vendor\doctrine\orm\lib\Doctrine\ORM\ORMException.php on line 87
Fatal error: Uncaught Doctrine\ORM\ORMException: Entity of type Alura\Doctrine\Entity\Aluno is missing an assigned ID for field 'id'. The identifier generation strategy for this entity requires the ID field to be populated before EntityManager#persist() is called. If you want automatically generated identifiers instead you need to adjust the metadata mapping accordingly. in C:\Users\Larissa\Desktop\doctrine\vendor\doctrine\orm\lib\Doctrine\ORM\ORMException.php:87
Stack trace:
#0 C:\Users\Larissa\Desktop\doctrine\vendor\doctrine\orm\lib\Doctrine\ORM\Id\AssignedGenerator.php(53): Doctrine\ORM\ORMException::entityMissingAssignedIdForField(Object(Alura\Doctrine\Entity\Aluno), 'id')
#1 C:\Users\Larissa\Desktop\doctrine\vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php(937): Doctrine\ORM\Id\AssignedGenerator->generate(Object(Doctrine\ORM\EntityManager), Object(Alura\Doctrine\Entity\Aluno))
#2 C:\Users\Larissa\Desktop\doctrine\vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php(1768): Doctrine\ORM\UnitOfWork->persistNew(Objec in C:\Users\Larissa\Desktop\doctrine\vendor\doctrine\orm\lib\Doctrine\ORM\ORMException.php on line 87
C:\Users\Larissa\Desktop\doctrine>php commands\criar-aluno.php
Gostaria de ajuda para resolver esse erro!