Datenschutz

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? (500 Internal Server Error)

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

Exception

ErrorException

  1.                     // use the entity association
  2.                     if (isset($data[$field]) && is_object($data[$field]) && isset($this->entityStates[spl_object_hash($data[$field])])) {
  3.                         $class->reflFields[$field]->setValue($entity$data[$field]);
  4.                         $this->originalEntityData[$oid][$field] = $data[$field];
  5.                         continue;
  6.                     }
  7.                     $associatedId = [];
  8.                     // TODO: Is this even computed right in all cases of composite keys?
in vendor/symfony/debug/DebugClassLoader.php->handleError (line 145)
  1.             if ($this->isFinder && !isset($this->loaded[$class])) {
  2.                 $this->loaded[$class] = true;
  3.                 if ($file $this->classLoader[0]->findFile($class) ?: false) {
  4.                     $wasCached = \function_exists('opcache_is_script_cached') && @opcache_is_script_cached($file);
  5.                     require $file;
  6.                     if ($wasCached) {
  7.                         return;
  8.                     }
  9.                 }
  1.             if ($this->isFinder && !isset($this->loaded[$class])) {
  2.                 $this->loaded[$class] = true;
  3.                 if ($file $this->classLoader[0]->findFile($class) ?: false) {
  4.                     $wasCached = \function_exists('opcache_is_script_cached') && @opcache_is_script_cached($file);
  5.                     require $file;
  6.                     if ($wasCached) {
  7.                         return;
  8.                     }
  9.                 }
DebugClassLoader->loadClass('Doctrine\\ORM\\UnitOfWork')
  1.         $this->metadataFactory = new $metadataFactoryClassName;
  2.         $this->metadataFactory->setEntityManager($this);
  3.         $this->metadataFactory->setCacheDriver($this->config->getMetadataCacheImpl());
  4.         $this->repositoryFactory $config->getRepositoryFactory();
  5.         $this->unitOfWork        = new UnitOfWork($this);
  6.         $this->proxyFactory      = new ProxyFactory(
  7.             $this,
  8.             $config->getProxyDir(),
  9.             $config->getProxyNamespace(),
  10.             $config->getAutoGenerateProxyClasses()
  1.             throw ORMException::missingMappingDriverImpl();
  2.         }
  3.         $connection = static::createConnection($connection$config$eventManager);
  4.         return new EntityManager($connection$config$connection->getEventManager());
  5.     }
  6.     /**
  7.      * Factory method to create Connection instances.
  8.      *
  1.     return ($this->privates['App\Repository\DomainRepository'] ?? $this->load('getDomainRepositoryService.php'));
  2. }, 'App\\Repository\\PassageRepository' => function () {
  3.     return ($this->privates['App\Repository\PassageRepository'] ?? $this->load('getPassageRepositoryService.php'));
  4. }))));
  5. $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create(($this->services['doctrine.dbal.default_connection'] ?? $this->load('getDoctrine_Dbal_DefaultConnectionService.php')), $b);
  6. (new \Doctrine\Bundle\DoctrineBundle\ManagerConfigurator(array(), array()))->configure($instance);
  7. return $instance;
  1.         return require $this->containerDir.\DIRECTORY_SEPARATOR.'removed-ids.php';
  2.     }
  3.     protected function load($file$lazyLoad true)
  4.     {
  5.         return require $this->containerDir.\DIRECTORY_SEPARATOR.$file;
  6.     }
  7.     /**
  8.      * Gets the public 'doctrine' shared service.
  9.      *
  1.         $this->loading[$id] = true;
  2.         try {
  3.             if (isset($this->fileMap[$id])) {
  4.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ === $invalidBehavior null $this->load($this->fileMap[$id]);
  5.             } elseif (isset($this->methodMap[$id])) {
  6.                 return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ === $invalidBehavior null $this->{$this->methodMap[$id]}();
  7.             }
  8.         } catch (\Exception $e) {
  9.             unset($this->services[$id]);
  1.      */
  2.     public function get($id$invalidBehavior /* self::EXCEPTION_ON_INVALID_REFERENCE */ 1)
  3.     {
  4.         return $this->services[$id]
  5.             ?? $this->services[$id $this->aliases[$id] ?? $id]
  6.             ?? ('service_container' === $id $this : ($this->factories[$id] ?? array($this'make'))($id$invalidBehavior));
  7.     }
  8.     /**
  9.      * Creates a service.
  10.      *
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     protected function getService($name)
  5.     {
  6.         return $this->container->get($name);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.         if (!isset($this->managers[$name])) {
  2.             throw new \InvalidArgumentException(sprintf('Doctrine %s Manager named "%s" does not exist.'$this->name$name));
  3.         }
  4.         return $this->getService($this->managers[$name]);
  5.     }
  6.     /**
  7.      * {@inheritdoc}
  8.      */
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getRepository($persistentObjectName$persistentManagerName null)
  5.     {
  6.         return $this->getManager($persistentManagerName)->getRepository($persistentObjectName);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
AbstractManagerRegistry->getRepository('App\\Entity\\Domain') in src/Controller/APIController.php (line 35)
  1.         $auth_key $request->get('auth');
  2.         $domain $this->getDoctrine()->getRepository(Domain::class)->findOneBy(['domain' => $remote_addr]);
  3.         //echo $domain->getDomain();
  4.         if (!$domain) {
  5.             return new Response('unknown domain ' .  $remote_addr,  404);
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response = \call_user_func_array($controller$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  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(object(Request)) in public/index.php (line 37)
  1.     Request::setTrustedHosts(explode(','$trustedHosts));
  2. }
  3. $kernel = new Kernel($env$debug);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Logs

No log messages

Stack Trace

ErrorException

ErrorException:
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?

  at vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:2718
  at Symfony\Component\Debug\ErrorHandler->handleError(2, '"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?', '/html/cds-europa/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2718, array('class' => 'Doctrine\\ORM\\UnitOfWork', 'e' => 32767, 'file' => '/html/cds-europa/vendor/composer/../doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 'wasCached' => false))
     (vendor/symfony/debug/DebugClassLoader.php:145)
  at require()
     (vendor/symfony/debug/DebugClassLoader.php:145)
  at Symfony\Component\Debug\DebugClassLoader->loadClass('Doctrine\\ORM\\UnitOfWork')
  at spl_autoload_call('Doctrine\\ORM\\UnitOfWork')
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:161)
  at Doctrine\ORM\EntityManager->__construct(object(Connection), object(Configuration), object(ContainerAwareEventManager))
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:853)
  at Doctrine\ORM\EntityManager::create(object(Connection), object(Configuration))
     (var/cache/dist/ContainerY112qXP/getDoctrine_Orm_DefaultEntityManagerService.php:54)
  at require('/html/cds-europa/var/cache/dist/ContainerY112qXP/getDoctrine_Orm_DefaultEntityManagerService.php')
     (var/cache/dist/ContainerY112qXP/srcDistDebugProjectContainer.php:360)
  at ContainerY112qXP\srcDistDebugProjectContainer->load('getDoctrine_Orm_DefaultEntityManagerService.php')
     (vendor/symfony/dependency-injection/Container.php:240)
  at Symfony\Component\DependencyInjection\Container->make('doctrine.orm.default_entity_manager', 1)
     (vendor/symfony/dependency-injection/Container.php:222)
  at Symfony\Component\DependencyInjection\Container->get('doctrine.orm.default_entity_manager')
     (vendor/symfony/doctrine-bridge/ManagerRegistry.php:35)
  at Symfony\Bridge\Doctrine\ManagerRegistry->getService('doctrine.orm.default_entity_manager')
     (vendor/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php:183)
  at Doctrine\Common\Persistence\AbstractManagerRegistry->getManager('default')
     (vendor/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php:242)
  at Doctrine\Common\Persistence\AbstractManagerRegistry->getRepository('App\\Entity\\Domain')
     (src/Controller/APIController.php:35)
  at App\Controller\APIController->index(object(Request))
     (vendor/symfony/http-kernel/HttpKernel.php:149)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:66)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:188)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:37)