// use the entity association
if (isset($data[$field]) && is_object($data[$field]) && isset($this->entityStates[spl_object_hash($data[$field])])) {
$class->reflFields[$field]->setValue($entity, $data[$field]);
$this->originalEntityData[$oid][$field] = $data[$field];
continue;
}
$associatedId = array();
// TODO: Is this even computed right in all cases of composite keys?
$this->metadataFactory = new $metadataFactoryClassName;
$this->metadataFactory->setEntityManager($this);
$this->metadataFactory->setCacheDriver($this->config->getMetadataCacheImpl());
$this->repositoryFactory = $config->getRepositoryFactory();
$this->unitOfWork = new UnitOfWork($this);
$this->proxyFactory = new ProxyFactory(
$this,
$config->getProxyDir(),
$config->getProxyNamespace(),
$config->getAutoGenerateProxyClasses()
return ${($_ = isset($this->services['AppBundle\sauv\OperationPretRepository']) ? $this->services['AppBundle\sauv\OperationPretRepository'] : $this->load(__DIR__.'/getOperationPretRepositoryService.php')) && false ?: '_'};
}, 'AppBundle\\sauv\\PostRepository' => function () {
return ${($_ = isset($this->services['AppBundle\sauv\PostRepository']) ? $this->services['AppBundle\sauv\PostRepository'] : $this->load(__DIR__.'/getPostRepository2Service.php')) && false ?: '_'};
}))));
$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);
${($_ = 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);
return $instance;
$this->loading[$id] = true;
try {
if (isset($this->fileMap[$id])) {
return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ 4 === $invalidBehavior ? null : $this->load($this->fileMap[$id]);
} elseif (isset($this->methodMap[$id])) {
return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ 4 === $invalidBehavior ? null : $this->{$this->methodMap[$id]}();
} elseif (--$i && $id !== $normalizedId = $this->normalizeId($id)) {
unset($this->loading[$id]);
$id = $normalizedId;
// automatically apply conversion for non-configured objects
if ($this->autoConvert) {
$configurations = $this->autoConfigure($r, $request, $configurations);
}
$this->manager->apply($request, $configurations);
}
private function autoConfigure(\ReflectionFunctionAbstract $r, Request $request, $configurations)
{
foreach ($r->getParameters() as $param) {
if (false === $controller = $this->resolver->getController($request)) {
throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));
}
$event = new FilterControllerEvent($this, $controller, $request, $type);
$this->dispatcher->dispatch(KernelEvents::CONTROLLER, $event);
$controller = $event->getController();
// controller arguments
$arguments = $this->argumentResolver->getArguments($request, $controller);
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
//$kernel = new AppCache($kernel);
// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
No log messages
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) |