Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao usar o comando: php vendor/bin/doctrine orm:schema-tool:create (Ubuntu)

quando eu rodo o comando no terminal ele retorna uma mensagem de erro

PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_sqlite' (tried: /usr/lib/php/20190902/pdo_sqlite (/usr/lib/php/20190902/pdo_sqlite: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pdo_sqlite.so (/usr/lib/php/20190902/pdo_sqlite.so: undefined symbol: php_pdo_unregister_driver)) in Unknown on line 0

 !                                                                                                                      
 ! [CAUTION] This operation should not be executed in a production environment!                                         
 !                                                                                                                      

 Creating database schema...


In DBALException.php line 282:

  Unknown column type "interger" requested. Any Doctrine type that you use has to be registered with \Doctrine\DBAL\Types\Type::addType(). You  
   can get a list of all the known types with \Doctrine\DBAL\Types\Type::getTypesMap(). If this error occurs during database introspection the  
  n you might have forgotten to register all database types for a Doctrine Type. Use AbstractPlatform#registerDoctrineTypeMapping() or have yo  
  ur custom types implement Type#getMappedDatabaseTypes(). If the type name is empty you might have a problem with the cache or forgot some ma  
  pping information.                                                                                                                            


orm:schema-tool:create [--em EM] [--dump-sql]
1 resposta
solução!

No erro aparece:

Unknown column type "interger" requested.

Não é "interger" e sim "integer".

Deve estar escrito errado no comentario da variável id do arquivo Aluno.php:

/**

 * @Id
 * @GeneratedValue
 * @Column(type='integer')
 */

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software