Symfony Exception

ContextErrorException

HTTP500 Internal Server Error

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

Exception

Symfony\Component\Debug\Exception\ ContextErrorException

  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 = array();
  8.                     // TODO: Is this even computed right in all cases of composite keys?
ErrorHandler->handleError(2, '"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?', '/home/tincaxxc/factour.tincom.biz/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2636, array('file' => '/home/tincaxxc/factour.tincom.biz/vendor/composer/../doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php')) in vendor/composer/ClassLoader.php (line444)
  1.  *
  2.  * Prevents access to $this/self from included files.
  3.  */
  4. function includeFile($file)
  5. {
  6.     include $file;
  7. }
include() in vendor/composer/ClassLoader.php (line444)
  1.  *
  2.  * Prevents access to $this/self from included files.
  3.  */
  4. function includeFile($file)
  5. {
  6.     include $file;
  7. }
Composer\Autoload\includeFile('/home/tincaxxc/factour.tincom.biz/vendor/composer/../doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php') in vendor/composer/ClassLoader.php (line322)
  1.      * @return bool|null True if loaded, null otherwise
  2.      */
  3.     public function loadClass($class)
  4.     {
  5.         if ($file $this->findFile($class)) {
  6.             includeFile($file);
  7.             return true;
  8.         }
  9.     }
ClassLoader->loadClass('Doctrine\\ORM\\UnitOfWork')
spl_autoload_call('Doctrine\\ORM\\UnitOfWork') in vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php (line160)
  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()
EntityManager->__construct(object(Connection), object(Configuration), object(ContainerAwareEventManager)) in vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php (line850)
  1.             default:
  2.                 throw new \InvalidArgumentException("Invalid argument: " $conn);
  3.         }
  4.         return new EntityManager($conn$config$conn->getEventManager());
  5.     }
  6.     /**
  7.      * {@inheritDoc}
  8.      */
EntityManager::create(object(Connection), object(Configuration)) in var/cache/prod/ContainerUxbfqe8/getDoctrine_Orm_DefaultEntityManagerService.php (line47)
  1. $b->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
  2. $b->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
  3. $b->setEntityListenerResolver(${($_ = isset($this->services['doctrine.orm.default_entity_listener_resolver']) ? $this->services['doctrine.orm.default_entity_listener_resolver'] : $this->services['doctrine.orm.default_entity_listener_resolver'] = new \Doctrine\Bundle\DoctrineBundle\Mapping\ContainerAwareEntityListenerResolver($this)) && false ?: '_'});
  4. $b->setRepositoryFactory(new \Doctrine\Bundle\DoctrineBundle\Repository\ContainerRepositoryFactory(new \Symfony\Component\DependencyInjection\ServiceLocator(array())));
  5. $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create(${($_ = isset($this->services['doctrine.dbal.default_connection']) ? $this->services['doctrine.dbal.default_connection'] : $this->load('getDoctrine_Dbal_DefaultConnectionService.php')) && false ?: '_'}, $b);
  6. ${($_ = isset($this->services['doctrine.orm.default_manager_configurator']) ? $this->services['doctrine.orm.default_manager_configurator'] : $this->services['doctrine.orm.default_manager_configurator'] = new \Doctrine\Bundle\DoctrineBundle\ManagerConfigurator(array(), array())) && false ?: '_'}->configure($instance);
  7. return $instance;
require('/home/tincaxxc/factour.tincom.biz/var/cache/prod/ContainerUxbfqe8/getDoctrine_Orm_DefaultEntityManagerService.php') in var/cache/prod/ContainerUxbfqe8/appProdDebugProjectContainer.php (line681)
  1.         return true;
  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.      *
appProdDebugProjectContainer->load('getDoctrine_Orm_DefaultEntityManagerService.php') in vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php (line304)
  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.                 } elseif (--$i && $id !== $normalizedId $this->normalizeId($id)) {
  8.                     unset($this->loading[$id]);
  9.                     $id $normalizedId;
Container->get('doctrine.orm.default_entity_manager') in vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/ManagerRegistry.php (line48)
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     protected function getService($name)
  5.     {
  6.         return $this->container->get($name);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
ManagerRegistry->getService('doctrine.orm.default_entity_manager') in vendor/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php (line183)
  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.      */
AbstractManagerRegistry->getManager() in src/AppBundle/Controller/DefaultController.php (line34)
  1.     /**
  2.      * @Route("/liste", name="vente_liste")
  3.      */
  4.     public function listeAction(Request $request)
  5.     {
  6.         $em $this->getDoctrine()->getManager();
  7.         $ventes $em->getRepository("AppBundle:Vente")->findBy([], ["date" => "desc"]);
  8.         return $this->render('default/liste.html.twig', array("ventes" => $ventes));
  9.     }
  10.     
  11.     /**
DefaultController->listeAction(object(Request)) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line151)
  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);
HttpKernel->handleRaw(object(Request), 1) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line68)
  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) {
HttpKernel->handle(object(Request), 1, true) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line200)
  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 web/app.php (line19)
  1. //$kernel = new AppCache($kernel);
  2. // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
  3. //Request::enableHttpMethodParameterOverride();
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Logs

No log messages

Stack Trace

ContextErrorException

Symfony\Component\Debug\Exception\ContextErrorException:Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?at vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:2636atSymfony\Component\Debug\ErrorHandler->handleError(2, '"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?', '/home/tincaxxc/factour.tincom.biz/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2636, array('file' => '/home/tincaxxc/factour.tincom.biz/vendor/composer/../doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php'))
     (vendor/composer/ClassLoader.php:444)atinclude()
     (vendor/composer/ClassLoader.php:444)atComposer\Autoload\includeFile('/home/tincaxxc/factour.tincom.biz/vendor/composer/../doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php')
     (vendor/composer/ClassLoader.php:322)atComposer\Autoload\ClassLoader->loadClass('Doctrine\\ORM\\UnitOfWork')atspl_autoload_call('Doctrine\\ORM\\UnitOfWork')
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:160)atDoctrine\ORM\EntityManager->__construct(object(Connection), object(Configuration), object(ContainerAwareEventManager))
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:850)atDoctrine\ORM\EntityManager::create(object(Connection), object(Configuration))
     (var/cache/prod/ContainerUxbfqe8/getDoctrine_Orm_DefaultEntityManagerService.php:47)atrequire('/home/tincaxxc/factour.tincom.biz/var/cache/prod/ContainerUxbfqe8/getDoctrine_Orm_DefaultEntityManagerService.php')
     (var/cache/prod/ContainerUxbfqe8/appProdDebugProjectContainer.php:681)atContainerUxbfqe8\appProdDebugProjectContainer->load('getDoctrine_Orm_DefaultEntityManagerService.php')
     (vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:304)atSymfony\Component\DependencyInjection\Container->get('doctrine.orm.default_entity_manager')
     (vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/ManagerRegistry.php:48)atSymfony\Bridge\Doctrine\ManagerRegistry->getService('doctrine.orm.default_entity_manager')
     (vendor/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php:183)atDoctrine\Common\Persistence\AbstractManagerRegistry->getManager()
     (src/AppBundle/Controller/DefaultController.php:34)atAppBundle\Controller\DefaultController->listeAction(object(Request))
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)atSymfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)atSymfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200)atSymfony\Component\HttpKernel\Kernel->handle(object(Request))
     (web/app.php:19)