https://www.unipoll.de/pruefungsprotokolle-1-staatsexamen/sachsen

Exceptions

More than one result was found for query although one row or none was expected.

Exception

Doctrine\ORM\ NonUniqueResultException

  1.         if (! is_array($result)) {
  2.             return $result;
  3.         }
  4.         if (count($result) > 1) {
  5.             throw new NonUniqueResultException();
  6.         }
  7.         return array_shift($result);
  8.     }
AbstractQuery->getOneOrNullResult() in src/JuridicusBundle/Repository/PruefungsamtRepository.php (line 73)
  1.             ->where('pa.examen = :examen')
  2.             ->setParameter('examen'$examen)
  3.             ->setParameter('bslug'$bslug)
  4.         ;
  5.         return $qb->getQuery()->getOneOrNullResult();
  6.     }
  7.     /**
  8.      *
  9.      * @param string $kuerzel
PruefungsamtRepository->findByExamenAndBSlug() in src/JuridicusBundle/Controller/PrueferController.php (line 162)
  1.      * )
  2.      */
  3.     public function showPruefungsamtAction($bslug$examen)
  4.     {
  5.         $em $this->getDoctrine()->getManager();
  6.         $pruefungsamt $em->getRepository(Pruefungsamt::class)->findByExamenAndBSlug($examen$bslug);
  7.         if (!$pruefungsamt) {
  8.             throw $this->createNotFoundException('Prüfungsamt wurde nicht gefunden.');
  9.         }
  10.         $pruefer_liste $em->getRepository(Pruefer::class)
in vendor/symfony/http-kernel/HttpKernel.php -> showPruefungsamtAction (line 163)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in public/index.php (line 28)
  1. }
  2. // Symfony Kernel starten
  3. $kernel = new Kernel($env$debug);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Logs

Level Channel Message
INFO 17:18:26 deprecation User Deprecated: Since symfony/monolog-bridge 6.4: The "Symfony\Bridge\Monolog\Logger" class is deprecated, use HttpKernel's DebugLoggerConfigurator instead.
{
    "exception": {}
}
INFO 17:18:26 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "latest"
    },
    "request_uri": "https://unipoll.de/_profiler/latest?ip=156.59.198.136",
    "method": "GET"
}

Stack Trace

NonUniqueResultException
Doctrine\ORM\NonUniqueResultException:
More than one result was found for query although one row or none was expected.

  at vendor/doctrine/orm/src/AbstractQuery.php:972
  at Doctrine\ORM\AbstractQuery->getOneOrNullResult()
     (src/JuridicusBundle/Repository/PruefungsamtRepository.php:73)
  at JF\JuridicusBundle\Repository\PruefungsamtRepository->findByExamenAndBSlug()
     (src/JuridicusBundle/Controller/PrueferController.php:162)
  at JF\JuridicusBundle\Controller\PrueferController->showPruefungsamtAction()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:28)