initial commit
This commit is contained in:
11
bootstrap.php
Normal file
11
bootstrap.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
// bootstrap.php - Haupt-Bootstrap-Datei für Doctrine
|
||||
|
||||
use Doctrine\ORM\EntityManager;
|
||||
|
||||
// EntityManager laden
|
||||
$entityManager = require_once __DIR__ . '/doctrine-config.php';
|
||||
|
||||
// Nun kann $entityManager in anderen Dateien verwendet werden:
|
||||
// require_once 'bootstrap.php';
|
||||
// $repository = $entityManager->getRepository(Entity\YourEntity::class);
|
||||
Reference in New Issue
Block a user