inheritance

This commit is contained in:
2022-05-22 18:01:54 +02:00
parent 53a3f43d75
commit f6a101d5e7
18 changed files with 907 additions and 2 deletions

View File

@ -2,6 +2,7 @@
namespace App\Controller;
use Doctrine\ORM\EntityManager;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
@ -12,11 +13,13 @@ class IndexController extends AbstractController
#[Route('/', name: 'app_index')]
public function index(Entity1Repository $repo): Response
{
$sm = $repo->getSchemaManager();
$entity8 = $repo->findOneByName('entity 8');
return $this->render('index/index.html.twig', [
'controller_name' => 'IndexController',
'entity8' => $entity8
'entity8' => $entity8,
'schemaManager' => $sm
]);
}
}