Exceptions
Exception
Doctrine\ORM\ NonUniqueResultException
in
vendor/doctrine/orm/src/AbstractQuery.php
(line 972)
if (! is_array($result)) {return $result;}if (count($result) > 1) {throw new NonUniqueResultException();}return array_shift($result);}
AbstractQuery->getOneOrNullResult()
in
src/JuridicusBundle/Repository/PruefungsamtRepository.php
(line 73)
->where('pa.examen = :examen')->setParameter('examen', $examen)->setParameter('bslug', $bslug);return $qb->getQuery()->getOneOrNullResult();}/**** @param string $kuerzel
PruefungsamtRepository->findByExamenAndBSlug()
in
src/JuridicusBundle/Controller/PrueferController.php
(line 162)
* )*/public function showPruefungsamtAction($bslug, $examen){$em = $this->getDoctrine()->getManager();$pruefungsamt = $em->getRepository(Pruefungsamt::class)->findByExamenAndBSlug($examen, $bslug);if (!$pruefungsamt) {throw $this->createNotFoundException('Prüfungsamt wurde nicht gefunden.');}$pruefer_liste = $em->getRepository(Pruefer::class)
in
vendor/symfony/http-kernel/HttpKernel.php
->
showPruefungsamtAction
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);try {return $this->handleRaw($request, $type);} catch (\Exception $e) {if ($e instanceof RequestExceptionInterface) {$e = new BadRequestHttpException($e->getMessage(), $e);}if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
}// Symfony Kernel starten$kernel = new Kernel($env, $debug);$request = Request::createFromGlobals();$response = $kernel->handle($request);$response->send();$kernel->terminate($request, $response);
Logs
| Level | Channel | Message |
|---|---|---|
| INFO 18:55:15 | deprecation |
User Deprecated: Since symfony/monolog-bridge 6.4: The "Symfony\Bridge\Monolog\Logger" class is deprecated, use HttpKernel's DebugLoggerConfigurator instead. {
"exception": {}
}
|
| INFO 18:55:15 | request |
Matched route "_profiler". {
"route": "_profiler",
"route_parameters": {
"_route": "_profiler",
"_controller": "web_profiler.controller.profiler::panelAction",
"token": "594888"
},
"request_uri": "https://unipoll.de/_profiler/594888",
"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)
|