// 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()
$b->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
$b->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
$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 ?: '_'});
$b->setRepositoryFactory(new \Doctrine\Bundle\DoctrineBundle\Repository\ContainerRepositoryFactory(new \Symfony\Component\DependencyInjection\ServiceLocator(array())));
$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);
${($_ = 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;
$this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = \call_user_func_array($controller, $arguments);
// view
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
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/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) |