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 = [];
  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/jeutuprexp/escapegamecity/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2718, array('file' => '/home/jeutuprexp/escapegamecity/vendor/composer/../doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php')) in vendor/composer/ClassLoader.php (line440)
  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 (line440)
  1.  *
  2.  * Prevents access to $this/self from included files.
  3.  */
  4. function includeFile($file)
  5. {
  6.     include $file;
  7. }
Composer\Autoload\includeFile('/home/jeutuprexp/escapegamecity/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 (line161)
  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 (line853)
  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.      *
EntityManager::create(object(Connection), object(Configuration)) in var/cache/prod/appProdDebugProjectContainer.php (line1866)
  1.         $d->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
  2.         $d->setEntityListenerResolver(${($_ = isset($this->services['doctrine.orm.default_entity_listener_resolver']) ? $this->services['doctrine.orm.default_entity_listener_resolver'] : $this->get('doctrine.orm.default_entity_listener_resolver')) && false ?: '_'});
  3.         $d->setRepositoryFactory(new \Doctrine\Bundle\DoctrineBundle\Repository\ContainerRepositoryFactory(new \Symfony\Component\DependencyInjection\ServiceLocator(array())));
  4.         $d->addCustomNumericFunction('geodist''AppBundle\\DQL\\Geodist');
  5.         $instance = \Doctrine\ORM\EntityManager::create(${($_ = isset($this->services['doctrine.dbal.default_connection']) ? $this->services['doctrine.dbal.default_connection'] : $this->get('doctrine.dbal.default_connection')) && false ?: '_'}, $d);
  6.         ${($_ = isset($this->services['doctrine.orm.default_manager_configurator']) ? $this->services['doctrine.orm.default_manager_configurator'] : $this->get('doctrine.orm.default_manager_configurator')) && false ?: '_'}->configure($instance);
  7.         return $instance;
  8.     }
appProdDebugProjectContainer->getDoctrine_Orm_DefaultEntityManagerService(false) in var/cache/prod/appProdDebugProjectContainer.php (line1831)
  1.     {
  2.         if ($lazyLoad) {
  3.             return $this->services['doctrine.orm.default_entity_manager'] = DoctrineORMEntityManager_0000000042fe7bd90000000019db9d451f87bc031e1451153bc29ca4582e606a::staticProxyConstructor(
  4.                 function (&$wrappedInstance, \ProxyManager\Proxy\LazyLoadingInterface $proxy) {
  5.                     $wrappedInstance $this->getDoctrine_Orm_DefaultEntityManagerService(false);
  6.                     $proxy->setProxyInitializer(null);
  7.                     return true;
  8.                 }
appProdDebugProjectContainer->{closure}(null, object(DoctrineORMEntityManager_0000000042fe7bd90000000019db9d451f87bc031e1451153bc29ca4582e606a), 'getRepository', array('entityName' => 'AppBundle\\Entity\\Story'), object(Closure)) in var/cache/prod/appProdDebugProjectContainer.php (line7199)
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     public function getRepository($entityName)
  5.     {
  6.         $this->initializer65fc4083dca1c478314436 && ($this->initializer65fc4083dca1c478314436->__invoke($valueHolder65fc4083dca16387005002$this'getRepository', array('entityName' => $entityName), $this->initializer65fc4083dca1c478314436) || 1) && $this->valueHolder65fc4083dca16387005002 $valueHolder65fc4083dca16387005002;
  7.         return $this->valueHolder65fc4083dca16387005002->getRepository($entityName);
  8.     }
  9.     /**
Closure->__invoke(null, object(DoctrineORMEntityManager_0000000042fe7bd90000000019db9d451f87bc031e1451153bc29ca4582e606a), 'getRepository', array('entityName' => 'AppBundle\\Entity\\Story'), object(Closure)) in var/cache/prod/appProdDebugProjectContainer.php (line7199)
  1.     /**
  2.      * {@inheritDoc}
  3.      */
  4.     public function getRepository($entityName)
  5.     {
  6.         $this->initializer65fc4083dca1c478314436 && ($this->initializer65fc4083dca1c478314436->__invoke($valueHolder65fc4083dca16387005002$this'getRepository', array('entityName' => $entityName), $this->initializer65fc4083dca1c478314436) || 1) && $this->valueHolder65fc4083dca16387005002 $valueHolder65fc4083dca16387005002;
  7.         return $this->valueHolder65fc4083dca16387005002->getRepository($entityName);
  8.     }
  9.     /**
DoctrineORMEntityManager_0000000042fe7bd90000000019db9d451f87bc031e1451153bc29ca4582e606a->getRepository('AppBundle\\Entity\\Story') in vendor/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php (line242)
  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('AppBundle\\Entity\\Story') in var/cache/prod/appProdDebugProjectContainer.php (line1088)
  1.      *
  2.      * @return \AppBundle\Repository\StoryRepository
  3.      */
  4.     protected function getAppBundle_Repository_StoryRepositoryService()
  5.     {
  6.         return $this->services['AppBundle\Repository\StoryRepository'] = ${($_ = isset($this->services['doctrine']) ? $this->services['doctrine'] : $this->get('doctrine')) && false ?: '_'}->getRepository('AppBundle\\Entity\\Story');
  7.     }
  8.     /**
  9.      * Gets the public 'AppBundle\Repository\UserRepository' shared autowired service.
  10.      *
appProdDebugProjectContainer->getAppBundle_Repository_StoryRepositoryService() in vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php (line329)
  1.             }
  2.             $this->loading[$id] = true;
  3.             try {
  4.                 $service $this->$method();
  5.             } catch (\Exception $e) {
  6.                 unset($this->services[$id]);
  7.                 throw $e;
  8.             } finally {
Container->get('AppBundle\\Repository\\StoryRepository') in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php (line50)
  1.      *
  2.      * @return object The service
  3.      */
  4.     protected function get($id)
  5.     {
  6.         return $this->container->get($id);
  7.     }
  8.     /**
  9.      * Gets a container configuration parameter by its name.
  10.      *
Controller->get('AppBundle\\Repository\\StoryRepository') in src/AppBundle/Controller/SearchController.php (line97)
  1.      * @method ("GET")
  2.      */
  3.     public function displayAction($code)
  4.     {
  5.         /** @var StoryRepository $storyRepository */
  6.         $storyRepository $this->get(StoryRepository::class);
  7.         $story $storyRepository->getLastVersionByCode($code);
  8.         /** @var ReviewRepository $reviewRepository */
  9.         $reviewRepository $this->get(ReviewRepository::class);
  10.         $storiesId $storyRepository->getAllStoriesIdByCode($code);
SearchController->displayAction('78') 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 (line169)
  1.     {
  2.         if (false === $this->booted) {
  3.             $this->boot();
  4.         }
  5.         return $this->getHttpKernel()->handle($request$type$catch);
  6.     }
  7.     /**
  8.      * Gets a HTTP kernel from the container.
  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:2718atSymfony\Component\Debug\ErrorHandler->handleError(2, '"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?', '/home/jeutuprexp/escapegamecity/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2718, array('file' => '/home/jeutuprexp/escapegamecity/vendor/composer/../doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php'))
     (vendor/composer/ClassLoader.php:440)atinclude()
     (vendor/composer/ClassLoader.php:440)atComposer\Autoload\includeFile('/home/jeutuprexp/escapegamecity/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:161)atDoctrine\ORM\EntityManager->__construct(object(Connection), object(Configuration), object(ContainerAwareEventManager))
     (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:853)atDoctrine\ORM\EntityManager::create(object(Connection), object(Configuration))
     (var/cache/prod/appProdDebugProjectContainer.php:1866)atappProdDebugProjectContainer->getDoctrine_Orm_DefaultEntityManagerService(false)
     (var/cache/prod/appProdDebugProjectContainer.php:1831)atappProdDebugProjectContainer->{closure}(null, object(DoctrineORMEntityManager_0000000042fe7bd90000000019db9d451f87bc031e1451153bc29ca4582e606a), 'getRepository', array('entityName' => 'AppBundle\\Entity\\Story'), object(Closure))
     (var/cache/prod/appProdDebugProjectContainer.php:7199)atClosure->__invoke(null, object(DoctrineORMEntityManager_0000000042fe7bd90000000019db9d451f87bc031e1451153bc29ca4582e606a), 'getRepository', array('entityName' => 'AppBundle\\Entity\\Story'), object(Closure))
     (var/cache/prod/appProdDebugProjectContainer.php:7199)atDoctrineORMEntityManager_0000000042fe7bd90000000019db9d451f87bc031e1451153bc29ca4582e606a->getRepository('AppBundle\\Entity\\Story')
     (vendor/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php:242)atDoctrine\Common\Persistence\AbstractManagerRegistry->getRepository('AppBundle\\Entity\\Story')
     (var/cache/prod/appProdDebugProjectContainer.php:1088)atappProdDebugProjectContainer->getAppBundle_Repository_StoryRepositoryService()
     (vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Container.php:329)atSymfony\Component\DependencyInjection\Container->get('AppBundle\\Repository\\StoryRepository')
     (vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php:50)atSymfony\Bundle\FrameworkBundle\Controller\Controller->get('AppBundle\\Repository\\StoryRepository')
     (src/AppBundle/Controller/SearchController.php:97)atAppBundle\Controller\SearchController->displayAction('78')
     (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:169)atSymfony\Component\HttpKernel\Kernel->handle(object(Request))
     (web/app.php:19)