baleen/bin/doctrine

17 lines
488 B
Plaintext
Raw Normal View History

2024-08-30 12:28:30 +00:00
<?php declare(strict_types=1);
require_once __DIR__ . '/../vendor/autoload.php';
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Tools\Console\ConsoleRunner;
use Doctrine\ORM\Tools\Console\EntityManagerProvider\SingleManagerProvider;
$dotenv = Dotenv\Dotenv::createImmutable([__DIR__, __DIR__ . "/.."]);
$dotenv->load();
2024-09-17 20:52:08 +00:00
2024-08-30 12:28:30 +00:00
require_once __DIR__ . '/../src/dependencies.php';
global $container;
ConsoleRunner::run(
new SingleManagerProvider($container->get(EntityManager::class))
);