/**
* @Route("/foundation/{url}", name="foundation_app_show")
*/
public function show(Request $request, FoundationRepository $foundationRepository): Response
{
$foundation = $foundationRepository->showOneByUrl($request->getLocale(), $request->get('url'));
return $this->render('foundation/app/show.html.twig', ['foundation' => $foundation]);
}
/**
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
No log messages
NoResultException |
---|
Doctrine\ORM\NoResultException: No result was found for query although at least one row was expected. at vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:837 at Doctrine\ORM\AbstractQuery->getSingleResult() (src/Repository/Extension/FoundationRepository.php:85) at App\Repository\Extension\FoundationRepository->showOneByUrl('hu', 'www.etyekimenhely.hu') (src/Controller/FoundationController.php:77) at App\Controller\FoundationController->show(object(Request), object(FoundationRepository)) (vendor/symfony/http-kernel/HttpKernel.php:158) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:80) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:27) |