Bom dia.
Tive o seguinte erro ao rodar o commando orm:schema-tool:create
Creating database schema...
In ToolsException.php line 19:
Schema-Tool failed with Error 'An exception occurred in driver: SQLSTATE[HY000] [14] unable to open database file' while execu
ting DDL: CREATE TABLE Aluno (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, nome VARCHAR(255) NOT NULL)
In AbstractSQLiteDriver.php line 83:
An exception occurred in driver: SQLSTATE[HY000] [14] unable to open database file
In Exception.php line 18:
SQLSTATE[HY000] [14] unable to open database file
In PDOConnection.php line 40:
SQLSTATE[HY000] [14] unable to open database file
orm:schema-tool:create [--em EM] [--dump-sql]
Meu arquivo doctrine.php:
#!/usr/bin/env php
<?php
use Alura\Doctrine\Helper\EntityManagerFactory;
use Doctrine\ORM\Tools\Console\ConsoleRunner;
use Doctrine\ORM\Tools\Console\EntityManagerProvider\SingleManagerProvider;
require_once __DIR__ . '/../vendor/autoload.php';
// replace with mechanism to retrieve EntityManager in your app
$entityManager = EntityManagerFactory::getEntityManager();
// $commands = [
// // If you want to add your own custom console commands,
// // you can do so here.
// ];
ConsoleRunner::run(
new SingleManagerProvider($entityManager)
);
Também não foi informado porque tiramos aquele código do início do arquivo: