Olá!
Quando rodo inserir-aluno.php com o echo $sqlInsert;
funciona normalmente, mas quando utilizo o var_dump($pdo->exec($sqlInsert));
recebo um Fatal error> Uncaught PDOException: SQLSTATE[HY000]: General error: 1 no such table: students
<?php
use Alura\Pdo\Domain\Model\Student;
require_once 'vendor/autoload.php';
$databasePath = __DIR__ . '/banco.sqlite';
$pdo = new PDO('sqlite:' . $databasePath);
$student = new Student(null, 'Vinicius Dias', new \DateTimeImmutable('1997-10-15'));
$sqlInsert = "INSERT INTO students (name, birth_date) VALUES ('{$student->name()}', '{$student->birthDate()->format('Y-m-d')}');";
var_dump($pdo->exec($sqlInsert));