You've already forked symfony-playground
fixtures
This commit is contained in:
@ -2,9 +2,7 @@
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use App\Entity\MerParaSub;
|
||||
use App\Repository\MerParaSubRepository;
|
||||
use Doctrine\ORM\EntityManager;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
@ -15,8 +13,8 @@ class IndexController extends AbstractController
|
||||
#[Route('/', name: 'app_index')]
|
||||
public function index(Entity1Repository $repo, MerParaSubRepository $subRepo): Response
|
||||
{
|
||||
// repo dummy
|
||||
$sm = $repo->getSchemaManager();
|
||||
$entity8 = $repo->findOneByName('entity 8');
|
||||
|
||||
$sub = $subRepo->findOne();
|
||||
dump($sub);
|
||||
@ -24,7 +22,6 @@ class IndexController extends AbstractController
|
||||
|
||||
return $this->render('index/index.html.twig', [
|
||||
'controller_name' => 'IndexController',
|
||||
'entity8' => $entity8,
|
||||
'schemaManager' => $sm
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user