<?php 
// config/bootstrap.php
require_once __DIR__ . '/../vendor/autoload.php';

use Doctrine\DBAL\DriverManager;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\ORMSetup;

$isDevMode = true;
$config = ORMSetup::createAttributeMetadataConfiguration(
    paths: array(__DIR__."/entity"),
    isDevMode: true,
);
$connection = DriverManager::getConnection( [
    'driver' => 'pdo_mysql',
    'user' => 'root',
    'password' => '',
    'host' => 'localhost:8889',
    'dbname' => 'nb_stripe_ns',
], $config);

$entityManager = new EntityManager($connection, $config);


?>