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/ifisoftc/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2636, array('file' => '/home/ifisoftc/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/ifisoftc/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/ContainerO3datku/getDoctrine_Orm_DefaultEntityManagerService.php (line67)
  1.     return ${($_ = isset($this->services['AppBundle\sauv\OperationPretRepository']) ? $this->services['AppBundle\sauv\OperationPretRepository'] : $this->load(__DIR__.'/getOperationPretRepositoryService.php')) && false ?: '_'};
  2. }, 'AppBundle\\sauv\\PostRepository' => function () {
  3.     return ${($_ = isset($this->services['AppBundle\sauv\PostRepository']) ? $this->services['AppBundle\sauv\PostRepository'] : $this->load(__DIR__.'/getPostRepository2Service.php')) && false ?: '_'};
  4. }))));
  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(__DIR__.'/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/ifisoftc/var/cache/prod/ContainerO3datku/getDoctrine_Orm_DefaultEntityManagerService.php') in var/cache/prod/ContainerO3datku/appProdDebugProjectContainer.php (line1035)
  1.         return true;
  2.     }
  3.     protected function load($file$lazyLoad true)
  4.     {
  5.         return require $file;
  6.     }
  7.     /**
  8.      * Gets the public 'craue_formflow_util' shared service.
  9.      *
appProdDebugProjectContainer->load('/home/ifisoftc/var/cache/prod/ContainerO3datku/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 (line231)
  1.      */
  2.     public function getManagers()
  3.     {
  4.         $dms = [];
  5.         foreach ($this->managers as $name => $id) {
  6.             $dms[$name] = $this->getService($id);
  7.         }
  8.         return $dms;
  9.     }
  1.      * {@inheritdoc}
  2.      */
  3.     public function supports(ParamConverter $configuration)
  4.     {
  5.         // if there is no manager, this means that only Doctrine DBAL is configured
  6.         if (null === $this->registry || !count($this->registry->getManagers())) {
  7.             return false;
  8.         }
  9.         if (null === $configuration->getClass()) {
  10.             return false;
DoctrineParamConverter->supports(object(ParamConverter)) in vendor/sensio/framework-extra-bundle/Request/ParamConverter/ParamConverterManager.php (line89)
  1.             return;
  2.         }
  3.         foreach ($this->all() as $converter) {
  4.             if ($converter->supports($configuration)) {
  5.                 if ($converter->apply($request$configuration)) {
  6.                     return;
  7.                 }
  8.             }
  9.         }
ParamConverterManager->applyConverter(object(Request), object(ParamConverter)) in vendor/sensio/framework-extra-bundle/Request/ParamConverter/ParamConverterManager.php (line48)
  1.         if (is_object($configurations)) {
  2.             $configurations = array($configurations);
  3.         }
  4.         foreach ($configurations as $configuration) {
  5.             $this->applyConverter($request$configuration);
  6.         }
  7.     }
  8.     /**
  9.      * Applies converter on request based on the given configuration.
ParamConverterManager->apply(object(Request), array('mailer' => object(ParamConverter))) in vendor/sensio/framework-extra-bundle/EventListener/ParamConverterListener.php (line78)
  1.         // automatically apply conversion for non-configured objects
  2.         if ($this->autoConvert) {
  3.             $configurations $this->autoConfigure($r$request$configurations);
  4.         }
  5.         $this->manager->apply($request$configurations);
  6.     }
  7.     private function autoConfigure(\ReflectionFunctionAbstract $rRequest $request$configurations)
  8.     {
  9.         foreach ($r->getParameters() as $param) {
ParamConverterListener->onKernelController(object(FilterControllerEvent), 'kernel.controller', object(TraceableEventDispatcher))
call_user_func(array(object(ParamConverterListener), 'onKernelController'), object(FilterControllerEvent), 'kernel.controller', object(TraceableEventDispatcher)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php (line104)
  1.     {
  2.         $this->called true;
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         call_user_func($this->listener$event$eventName$this->dispatcher ?: $dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
WrappedListener->__invoke(object(FilterControllerEvent), 'kernel.controller', object(ContainerAwareEventDispatcher)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line212)
  1.     {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             \call_user_func($listener$event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.controller', object(FilterControllerEvent)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line44)
  1.         if (null === $event) {
  2.             $event = new Event();
  3.         }
  4.         if ($listeners $this->getListeners($eventName)) {
  5.             $this->doDispatch($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
EventDispatcher->dispatch('kernel.controller', object(FilterControllerEvent)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php (line139)
  1.         $this->preProcess($eventName);
  2.         $this->preDispatch($eventName$event);
  3.         $e $this->stopwatch->start($eventName'section');
  4.         $this->dispatcher->dispatch($eventName$event);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
TraceableEventDispatcher->dispatch('kernel.controller', object(FilterControllerEvent)) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line139)
  1.         if (false === $controller $this->resolver->getController($request)) {
  2.             throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.'$request->getPathInfo()));
  3.         }
  4.         $event = new FilterControllerEvent($this$controller$request$type);
  5.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER$event);
  6.         $controller $event->getController();
  7.         // controller arguments
  8.         $arguments $this->argumentResolver->getArguments($request$controller);
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 (line202)
  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_html/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/ifisoftc/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php', 2636, array('file' => '/home/ifisoftc/vendor/composer/../doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php'))
     (vendor/composer/ClassLoader.php:444)atinclude()
     (vendor/composer/ClassLoader.php:444)atComposer\Autoload\includeFile('/home/ifisoftc/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/ContainerO3datku/getDoctrine_Orm_DefaultEntityManagerService.php:67)atrequire('/home/ifisoftc/var/cache/prod/ContainerO3datku/getDoctrine_Orm_DefaultEntityManagerService.php')
     (var/cache/prod/ContainerO3datku/appProdDebugProjectContainer.php:1035)atContainerO3datku\appProdDebugProjectContainer->load('/home/ifisoftc/var/cache/prod/ContainerO3datku/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:231)atDoctrine\Common\Persistence\AbstractManagerRegistry->getManagers()
     (vendor/sensio/framework-extra-bundle/Request/ParamConverter/DoctrineParamConverter.php:249)atSensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->supports(object(ParamConverter))
     (vendor/sensio/framework-extra-bundle/Request/ParamConverter/ParamConverterManager.php:89)atSensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->applyConverter(object(Request), object(ParamConverter))
     (vendor/sensio/framework-extra-bundle/Request/ParamConverter/ParamConverterManager.php:48)atSensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->apply(object(Request), array('mailer' => object(ParamConverter)))
     (vendor/sensio/framework-extra-bundle/EventListener/ParamConverterListener.php:78)atSensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener->onKernelController(object(FilterControllerEvent), 'kernel.controller', object(TraceableEventDispatcher))atcall_user_func(array(object(ParamConverterListener), 'onKernelController'), object(FilterControllerEvent), 'kernel.controller', object(TraceableEventDispatcher))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:104)atSymfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(FilterControllerEvent), 'kernel.controller', object(ContainerAwareEventDispatcher))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:212)atSymfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.controller', object(FilterControllerEvent))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:44)atSymfony\Component\EventDispatcher\EventDispatcher->dispatch('kernel.controller', object(FilterControllerEvent))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:139)atSymfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('kernel.controller', object(FilterControllerEvent))
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:139)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:202)atSymfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public_html/app.php:19)