Exceptions
Exceptions 3
Doctrine\DBAL\Exception\ ConnectionException
case '42P07':
return new TableExistsException($message, $exception);
case '08006':
return new Exception\ConnectionException($message, $exception);
case '7':
// Prior to fixing https://bugs.php.net/bug.php?id=64705 (PHP 7.3.22 and PHP 7.4.10),
// in some cases (mainly connection errors) the PDO exception wouldn't provide a SQLSTATE via its code.
// The exception code would be always set to 7 here.
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php
->
convertException
(line 182)
if ($driverEx instanceof DriverException) {
return $driverEx;
}
if ($driver instanceof ExceptionConverterDriver && $driverEx instanceof DeprecatedDriverException) {
return $driver->convertException($msg, $driverEx);
}
return new Exception($msg, 0, $driverEx);
}
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php
::
wrapException
(line 169)
*
* @return Exception
*/
public static function driverException(Driver $driver, Throwable $driverEx)
{
return self::wrapException($driver, $driverEx, 'An exception occurred in driver: ' . $driverEx->getMessage());
}
/**
* @return Exception
*/
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php
::
driverException
(line 52)
$pdo->exec('SET NAMES \'' . $params['charset'] . '\'');
}
return $pdo;
} catch (PDOException $e) {
throw Exception::driverException($this, $e);
}
}
/**
* Constructs the Postgres PDO DSN.
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
->
connect
(line 412)
$driverOptions = $this->params['driverOptions'] ?? [];
$user = $this->params['user'] ?? null;
$password = $this->params['password'] ?? null;
$this->_conn = $this->_driver->connect($this->params, $user, $password, $driverOptions);
$this->transactionNestingLevel = 0;
if ($this->autoCommit === false) {
$this->beginTransaction();
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
->
connect
(line 1952)
*
* @return DriverConnection
*/
public function getWrappedConnection()
{
$this->connect();
assert($this->_conn !== null);
return $this->_conn;
}
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
->
getWrappedConnection
(line 1290)
{
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger) {
$logger->startQuery($sql, $params, $types);
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php
->
executeQuery
(line 31)
*
* @return Result
*/
public function execute(Connection $conn, array $params, array $types)
{
return $conn->executeQuery($this->_sqlStatements, $params, $types, $this->queryCacheProfile);
}
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query.php
->
execute
(line 325)
$sqlParams,
$types,
$this->_em->getConnection()->getParams()
);
return $executor->execute($this->_em->getConnection(), $sqlParams, $types);
}
/**
* @param array<string,mixed> $sqlParams
* @param array<string,Type> $types
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
_doExecute
(line 1212)
$setCacheEntry = static function ($data) use ($cache, $result, $cacheItem, $realCacheKey): void {
$cache->save($cacheItem->set($result + [$realCacheKey => $data]));
};
}
$stmt = $this->_doExecute();
if (is_numeric($stmt)) {
$setCacheEntry($stmt);
return $stmt;
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
executeIgnoreQueryCache
(line 1166)
{
if ($this->cacheable && $this->isCacheEnabled()) {
return $this->executeUsingQueryCache($parameters, $hydrationMode);
}
return $this->executeIgnoreQueryCache($parameters, $hydrationMode);
}
/**
* Execute query ignoring second level cache.
*
in
vendor/symfony/doctrine-bridge/Form/ChoiceList/ORMQueryBuilderLoader.php
->
execute
(line 49)
/**
* {@inheritdoc}
*/
public function getEntities()
{
return $this->queryBuilder->getQuery()->execute();
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/doctrine-bridge/Form/ChoiceList/DoctrineChoiceLoader.php
->
getEntities
(line 58)
* {@inheritdoc}
*/
protected function loadChoices(): iterable
{
return $this->objectLoader
? $this->objectLoader->getEntities()
: $this->manager->getRepository($this->class)->findAll();
}
/**
* @internal to be remove in Symfony 6
in
vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php
->
loadChoices
(line 36)
*
* {@inheritdoc}
*/
public function loadChoiceList(callable $value = null): ChoiceListInterface
{
return new ArrayChoiceList($this->choices ?? $this->choices = $this->loadChoices(), $value);
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/form/ChoiceList/LazyChoiceList.php
->
loadChoiceList
(line 61)
/**
* {@inheritdoc}
*/
public function getChoices()
{
return $this->loader->loadChoiceList($this->value)->getChoices();
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/form/ChoiceList/Factory/DefaultChoiceListFactory.php
->
getChoices
(line 81)
{
$labelTranslationParameters = \func_num_args() > 6 ? func_get_arg(6) : [];
$preferredViews = [];
$preferredViewsOrder = [];
$otherViews = [];
$choices = $list->getChoices();
$keys = $list->getOriginalKeys();
if (!\is_callable($preferredChoices)) {
if (empty($preferredChoices)) {
$preferredChoices = null;
in
vendor/symfony/form/ChoiceList/Factory/PropertyAccessDecorator.php
->
createView
(line 230)
return $accessor->getValue($choice, $labelTranslationParameters);
};
}
return $this->decoratedFactory->createView(
$list,
$preferredChoices,
$label,
$index,
$groupBy,
$attr,
in
vendor/symfony/form/ChoiceList/Factory/CachingFactoryDecorator.php
->
createView
(line 235)
$hash = self::generateHash([$list, $preferredChoices, $label, $index, $groupBy, $attr, $labelTranslationParameters]);
if (!isset($this->views[$hash])) {
$this->views[$hash] = $this->decoratedFactory->createView(
$list,
$preferredChoices,
$label,
$index,
$groupBy,
$attr,
in
vendor/symfony/form/Extension/Core/Type/ChoiceType.php
->
createView
(line 496)
$options['preferred_choices'],
$options['choice_label'],
$options['choice_name'],
$options['group_by'],
$options['choice_attr'],
$options['choice_translation_parameters']
);
}
}
in
vendor/symfony/form/Extension/Core/Type/ChoiceType.php
->
createChoiceListView
(line 253)
$choiceList = $form->getConfig()->getAttribute('choice_list');
/** @var ChoiceListView $choiceListView */
$choiceListView = $form->getConfig()->hasAttribute('choice_list_view')
? $form->getConfig()->getAttribute('choice_list_view')
: $this->createChoiceListView($choiceList, $options);
$view->vars = array_replace($view->vars, [
'multiple' => $options['multiple'],
'expanded' => $options['expanded'],
'preferred_choices' => $choiceListView->preferredChoices,
in
vendor/symfony/form/ResolvedFormType.php
->
buildView
(line 147)
{
if (null !== $this->parent) {
$this->parent->buildView($view, $form, $options);
}
$this->innerType->buildView($view, $form, $options);
foreach ($this->typeExtensions as $extension) {
$extension->buildView($view, $form, $options);
}
}
in
vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php
->
buildView
(line 103)
/**
* {@inheritdoc}
*/
public function buildView(FormView $view, FormInterface $form, array $options)
{
$this->proxiedType->buildView($view, $form, $options);
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/form/ResolvedFormType.php
->
buildView
(line 144)
* {@inheritdoc}
*/
public function buildView(FormView $view, FormInterface $form, array $options)
{
if (null !== $this->parent) {
$this->parent->buildView($view, $form, $options);
}
$this->innerType->buildView($view, $form, $options);
foreach ($this->typeExtensions as $extension) {
in
vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php
->
buildView
(line 103)
/**
* {@inheritdoc}
*/
public function buildView(FormView $view, FormInterface $form, array $options)
{
$this->proxiedType->buildView($view, $form, $options);
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/form/Form.php
->
buildView
(line 1062)
// The methods createView(), buildView() and finishView() are called
// explicitly here in order to be able to override either of them
// in a custom resolved form type.
$view = $type->createView($this, $parent);
$type->buildView($view, $this, $options);
foreach ($this->children as $name => $child) {
$view->children[$name] = $child->createView($view);
}
in
vendor/symfony/form/Form.php
->
createView
(line 1065)
$view = $type->createView($this, $parent);
$type->buildView($view, $this, $options);
foreach ($this->children as $name => $child) {
$view->children[$name] = $child->createView($view);
}
$this->sort($view->children);
$type->finishView($view, $this, $options);
return $this->redirectToRoute('dataset');
}
return $this->render('/frontend/dataset/form.html.twig', [
'form' => $form->createView(),
'header_kategori' => $this->getHeaderKategori(),
]);
}
/**
in
vendor/symfony/http-kernel/HttpKernel.php
->
form
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Debug::enable();
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
Doctrine\DBAL\Driver\PDO\ Exception
*/
final class Exception extends PDOException
{
public static function new(\PDOException $exception): self
{
return new self($exception);
}
}
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
::
new
(line 44)
try {
parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
$this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
$this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
}
/**
* {@inheritdoc}
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php
->
__construct
(line 27)
*/
public function connect(array $params, $username = null, $password = null, array $driverOptions = [])
{
try {
$pdo = new PDO\Connection(
$this->_constructPdoDsn($params),
$username,
$password,
$driverOptions
);
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
->
connect
(line 412)
$driverOptions = $this->params['driverOptions'] ?? [];
$user = $this->params['user'] ?? null;
$password = $this->params['password'] ?? null;
$this->_conn = $this->_driver->connect($this->params, $user, $password, $driverOptions);
$this->transactionNestingLevel = 0;
if ($this->autoCommit === false) {
$this->beginTransaction();
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
->
connect
(line 1952)
*
* @return DriverConnection
*/
public function getWrappedConnection()
{
$this->connect();
assert($this->_conn !== null);
return $this->_conn;
}
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
->
getWrappedConnection
(line 1290)
{
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger) {
$logger->startQuery($sql, $params, $types);
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php
->
executeQuery
(line 31)
*
* @return Result
*/
public function execute(Connection $conn, array $params, array $types)
{
return $conn->executeQuery($this->_sqlStatements, $params, $types, $this->queryCacheProfile);
}
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query.php
->
execute
(line 325)
$sqlParams,
$types,
$this->_em->getConnection()->getParams()
);
return $executor->execute($this->_em->getConnection(), $sqlParams, $types);
}
/**
* @param array<string,mixed> $sqlParams
* @param array<string,Type> $types
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
_doExecute
(line 1212)
$setCacheEntry = static function ($data) use ($cache, $result, $cacheItem, $realCacheKey): void {
$cache->save($cacheItem->set($result + [$realCacheKey => $data]));
};
}
$stmt = $this->_doExecute();
if (is_numeric($stmt)) {
$setCacheEntry($stmt);
return $stmt;
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
executeIgnoreQueryCache
(line 1166)
{
if ($this->cacheable && $this->isCacheEnabled()) {
return $this->executeUsingQueryCache($parameters, $hydrationMode);
}
return $this->executeIgnoreQueryCache($parameters, $hydrationMode);
}
/**
* Execute query ignoring second level cache.
*
in
vendor/symfony/doctrine-bridge/Form/ChoiceList/ORMQueryBuilderLoader.php
->
execute
(line 49)
/**
* {@inheritdoc}
*/
public function getEntities()
{
return $this->queryBuilder->getQuery()->execute();
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/doctrine-bridge/Form/ChoiceList/DoctrineChoiceLoader.php
->
getEntities
(line 58)
* {@inheritdoc}
*/
protected function loadChoices(): iterable
{
return $this->objectLoader
? $this->objectLoader->getEntities()
: $this->manager->getRepository($this->class)->findAll();
}
/**
* @internal to be remove in Symfony 6
in
vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php
->
loadChoices
(line 36)
*
* {@inheritdoc}
*/
public function loadChoiceList(callable $value = null): ChoiceListInterface
{
return new ArrayChoiceList($this->choices ?? $this->choices = $this->loadChoices(), $value);
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/form/ChoiceList/LazyChoiceList.php
->
loadChoiceList
(line 61)
/**
* {@inheritdoc}
*/
public function getChoices()
{
return $this->loader->loadChoiceList($this->value)->getChoices();
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/form/ChoiceList/Factory/DefaultChoiceListFactory.php
->
getChoices
(line 81)
{
$labelTranslationParameters = \func_num_args() > 6 ? func_get_arg(6) : [];
$preferredViews = [];
$preferredViewsOrder = [];
$otherViews = [];
$choices = $list->getChoices();
$keys = $list->getOriginalKeys();
if (!\is_callable($preferredChoices)) {
if (empty($preferredChoices)) {
$preferredChoices = null;
in
vendor/symfony/form/ChoiceList/Factory/PropertyAccessDecorator.php
->
createView
(line 230)
return $accessor->getValue($choice, $labelTranslationParameters);
};
}
return $this->decoratedFactory->createView(
$list,
$preferredChoices,
$label,
$index,
$groupBy,
$attr,
in
vendor/symfony/form/ChoiceList/Factory/CachingFactoryDecorator.php
->
createView
(line 235)
$hash = self::generateHash([$list, $preferredChoices, $label, $index, $groupBy, $attr, $labelTranslationParameters]);
if (!isset($this->views[$hash])) {
$this->views[$hash] = $this->decoratedFactory->createView(
$list,
$preferredChoices,
$label,
$index,
$groupBy,
$attr,
in
vendor/symfony/form/Extension/Core/Type/ChoiceType.php
->
createView
(line 496)
$options['preferred_choices'],
$options['choice_label'],
$options['choice_name'],
$options['group_by'],
$options['choice_attr'],
$options['choice_translation_parameters']
);
}
}
in
vendor/symfony/form/Extension/Core/Type/ChoiceType.php
->
createChoiceListView
(line 253)
$choiceList = $form->getConfig()->getAttribute('choice_list');
/** @var ChoiceListView $choiceListView */
$choiceListView = $form->getConfig()->hasAttribute('choice_list_view')
? $form->getConfig()->getAttribute('choice_list_view')
: $this->createChoiceListView($choiceList, $options);
$view->vars = array_replace($view->vars, [
'multiple' => $options['multiple'],
'expanded' => $options['expanded'],
'preferred_choices' => $choiceListView->preferredChoices,
in
vendor/symfony/form/ResolvedFormType.php
->
buildView
(line 147)
{
if (null !== $this->parent) {
$this->parent->buildView($view, $form, $options);
}
$this->innerType->buildView($view, $form, $options);
foreach ($this->typeExtensions as $extension) {
$extension->buildView($view, $form, $options);
}
}
in
vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php
->
buildView
(line 103)
/**
* {@inheritdoc}
*/
public function buildView(FormView $view, FormInterface $form, array $options)
{
$this->proxiedType->buildView($view, $form, $options);
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/form/ResolvedFormType.php
->
buildView
(line 144)
* {@inheritdoc}
*/
public function buildView(FormView $view, FormInterface $form, array $options)
{
if (null !== $this->parent) {
$this->parent->buildView($view, $form, $options);
}
$this->innerType->buildView($view, $form, $options);
foreach ($this->typeExtensions as $extension) {
in
vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php
->
buildView
(line 103)
/**
* {@inheritdoc}
*/
public function buildView(FormView $view, FormInterface $form, array $options)
{
$this->proxiedType->buildView($view, $form, $options);
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/form/Form.php
->
buildView
(line 1062)
// The methods createView(), buildView() and finishView() are called
// explicitly here in order to be able to override either of them
// in a custom resolved form type.
$view = $type->createView($this, $parent);
$type->buildView($view, $this, $options);
foreach ($this->children as $name => $child) {
$view->children[$name] = $child->createView($view);
}
in
vendor/symfony/form/Form.php
->
createView
(line 1065)
$view = $type->createView($this, $parent);
$type->buildView($view, $this, $options);
foreach ($this->children as $name => $child) {
$view->children[$name] = $child->createView($view);
}
$this->sort($view->children);
$type->finishView($view, $this, $options);
return $this->redirectToRoute('dataset');
}
return $this->render('/frontend/dataset/form.html.twig', [
'form' => $form->createView(),
'header_kategori' => $this->getHeaderKategori(),
]);
}
/**
in
vendor/symfony/http-kernel/HttpKernel.php
->
form
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Debug::enable();
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
PDOException
* @throws PDOException In case of an error.
*/
public function __construct($dsn, $user = null, $password = null, ?array $options = null)
{
try {
parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
$this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
$this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php
->
__construct
(line 40)
* @throws PDOException In case of an error.
*/
public function __construct($dsn, $user = null, $password = null, ?array $options = null)
{
try {
parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
$this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
$this->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php
->
__construct
(line 27)
*/
public function connect(array $params, $username = null, $password = null, array $driverOptions = [])
{
try {
$pdo = new PDO\Connection(
$this->_constructPdoDsn($params),
$username,
$password,
$driverOptions
);
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
->
connect
(line 412)
$driverOptions = $this->params['driverOptions'] ?? [];
$user = $this->params['user'] ?? null;
$password = $this->params['password'] ?? null;
$this->_conn = $this->_driver->connect($this->params, $user, $password, $driverOptions);
$this->transactionNestingLevel = 0;
if ($this->autoCommit === false) {
$this->beginTransaction();
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
->
connect
(line 1952)
*
* @return DriverConnection
*/
public function getWrappedConnection()
{
$this->connect();
assert($this->_conn !== null);
return $this->_conn;
}
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
->
getWrappedConnection
(line 1290)
{
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger) {
$logger->startQuery($sql, $params, $types);
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php
->
executeQuery
(line 31)
*
* @return Result
*/
public function execute(Connection $conn, array $params, array $types)
{
return $conn->executeQuery($this->_sqlStatements, $params, $types, $this->queryCacheProfile);
}
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Query.php
->
execute
(line 325)
$sqlParams,
$types,
$this->_em->getConnection()->getParams()
);
return $executor->execute($this->_em->getConnection(), $sqlParams, $types);
}
/**
* @param array<string,mixed> $sqlParams
* @param array<string,Type> $types
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
_doExecute
(line 1212)
$setCacheEntry = static function ($data) use ($cache, $result, $cacheItem, $realCacheKey): void {
$cache->save($cacheItem->set($result + [$realCacheKey => $data]));
};
}
$stmt = $this->_doExecute();
if (is_numeric($stmt)) {
$setCacheEntry($stmt);
return $stmt;
in
vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php
->
executeIgnoreQueryCache
(line 1166)
{
if ($this->cacheable && $this->isCacheEnabled()) {
return $this->executeUsingQueryCache($parameters, $hydrationMode);
}
return $this->executeIgnoreQueryCache($parameters, $hydrationMode);
}
/**
* Execute query ignoring second level cache.
*
in
vendor/symfony/doctrine-bridge/Form/ChoiceList/ORMQueryBuilderLoader.php
->
execute
(line 49)
/**
* {@inheritdoc}
*/
public function getEntities()
{
return $this->queryBuilder->getQuery()->execute();
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/doctrine-bridge/Form/ChoiceList/DoctrineChoiceLoader.php
->
getEntities
(line 58)
* {@inheritdoc}
*/
protected function loadChoices(): iterable
{
return $this->objectLoader
? $this->objectLoader->getEntities()
: $this->manager->getRepository($this->class)->findAll();
}
/**
* @internal to be remove in Symfony 6
in
vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php
->
loadChoices
(line 36)
*
* {@inheritdoc}
*/
public function loadChoiceList(callable $value = null): ChoiceListInterface
{
return new ArrayChoiceList($this->choices ?? $this->choices = $this->loadChoices(), $value);
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/form/ChoiceList/LazyChoiceList.php
->
loadChoiceList
(line 61)
/**
* {@inheritdoc}
*/
public function getChoices()
{
return $this->loader->loadChoiceList($this->value)->getChoices();
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/form/ChoiceList/Factory/DefaultChoiceListFactory.php
->
getChoices
(line 81)
{
$labelTranslationParameters = \func_num_args() > 6 ? func_get_arg(6) : [];
$preferredViews = [];
$preferredViewsOrder = [];
$otherViews = [];
$choices = $list->getChoices();
$keys = $list->getOriginalKeys();
if (!\is_callable($preferredChoices)) {
if (empty($preferredChoices)) {
$preferredChoices = null;
in
vendor/symfony/form/ChoiceList/Factory/PropertyAccessDecorator.php
->
createView
(line 230)
return $accessor->getValue($choice, $labelTranslationParameters);
};
}
return $this->decoratedFactory->createView(
$list,
$preferredChoices,
$label,
$index,
$groupBy,
$attr,
in
vendor/symfony/form/ChoiceList/Factory/CachingFactoryDecorator.php
->
createView
(line 235)
$hash = self::generateHash([$list, $preferredChoices, $label, $index, $groupBy, $attr, $labelTranslationParameters]);
if (!isset($this->views[$hash])) {
$this->views[$hash] = $this->decoratedFactory->createView(
$list,
$preferredChoices,
$label,
$index,
$groupBy,
$attr,
in
vendor/symfony/form/Extension/Core/Type/ChoiceType.php
->
createView
(line 496)
$options['preferred_choices'],
$options['choice_label'],
$options['choice_name'],
$options['group_by'],
$options['choice_attr'],
$options['choice_translation_parameters']
);
}
}
in
vendor/symfony/form/Extension/Core/Type/ChoiceType.php
->
createChoiceListView
(line 253)
$choiceList = $form->getConfig()->getAttribute('choice_list');
/** @var ChoiceListView $choiceListView */
$choiceListView = $form->getConfig()->hasAttribute('choice_list_view')
? $form->getConfig()->getAttribute('choice_list_view')
: $this->createChoiceListView($choiceList, $options);
$view->vars = array_replace($view->vars, [
'multiple' => $options['multiple'],
'expanded' => $options['expanded'],
'preferred_choices' => $choiceListView->preferredChoices,
in
vendor/symfony/form/ResolvedFormType.php
->
buildView
(line 147)
{
if (null !== $this->parent) {
$this->parent->buildView($view, $form, $options);
}
$this->innerType->buildView($view, $form, $options);
foreach ($this->typeExtensions as $extension) {
$extension->buildView($view, $form, $options);
}
}
in
vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php
->
buildView
(line 103)
/**
* {@inheritdoc}
*/
public function buildView(FormView $view, FormInterface $form, array $options)
{
$this->proxiedType->buildView($view, $form, $options);
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/form/ResolvedFormType.php
->
buildView
(line 144)
* {@inheritdoc}
*/
public function buildView(FormView $view, FormInterface $form, array $options)
{
if (null !== $this->parent) {
$this->parent->buildView($view, $form, $options);
}
$this->innerType->buildView($view, $form, $options);
foreach ($this->typeExtensions as $extension) {
in
vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php
->
buildView
(line 103)
/**
* {@inheritdoc}
*/
public function buildView(FormView $view, FormInterface $form, array $options)
{
$this->proxiedType->buildView($view, $form, $options);
}
/**
* {@inheritdoc}
*/
in
vendor/symfony/form/Form.php
->
buildView
(line 1062)
// The methods createView(), buildView() and finishView() are called
// explicitly here in order to be able to override either of them
// in a custom resolved form type.
$view = $type->createView($this, $parent);
$type->buildView($view, $this, $options);
foreach ($this->children as $name => $child) {
$view->children[$name] = $child->createView($view);
}
in
vendor/symfony/form/Form.php
->
createView
(line 1065)
$view = $type->createView($this, $parent);
$type->buildView($view, $this, $options);
foreach ($this->children as $name => $child) {
$view->children[$name] = $child->createView($view);
}
$this->sort($view->children);
$type->finishView($view, $this, $options);
return $this->redirectToRoute('dataset');
}
return $this->render('/frontend/dataset/form.html.twig', [
'form' => $form->createView(),
'header_kategori' => $this->getHeaderKategori(),
]);
}
/**
in
vendor/symfony/http-kernel/HttpKernel.php
->
form
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Debug::enable();
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
Stack Traces 3
[3/3]
ConnectionException
|
---|
Doctrine\DBAL\Exception\ConnectionException: An exception occurred in driver: SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php:88 at Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException() (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:182) at Doctrine\DBAL\DBALException::wrapException() (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:169) at Doctrine\DBAL\DBALException::driverException() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php:52) at Doctrine\DBAL\Driver\PDOPgSql\Driver->connect() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:412) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1952) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1290) at Doctrine\DBAL\Connection->executeQuery() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:31) at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute() (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:325) at Doctrine\ORM\Query->_doExecute() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1212) at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1166) at Doctrine\ORM\AbstractQuery->execute() (vendor/symfony/doctrine-bridge/Form/ChoiceList/ORMQueryBuilderLoader.php:49) at Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader->getEntities() (vendor/symfony/doctrine-bridge/Form/ChoiceList/DoctrineChoiceLoader.php:58) at Symfony\Bridge\Doctrine\Form\ChoiceList\DoctrineChoiceLoader->loadChoices() (vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php:36) at Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader->loadChoiceList() (vendor/symfony/form/ChoiceList/LazyChoiceList.php:61) at Symfony\Component\Form\ChoiceList\LazyChoiceList->getChoices() (vendor/symfony/form/ChoiceList/Factory/DefaultChoiceListFactory.php:81) at Symfony\Component\Form\ChoiceList\Factory\DefaultChoiceListFactory->createView() (vendor/symfony/form/ChoiceList/Factory/PropertyAccessDecorator.php:230) at Symfony\Component\Form\ChoiceList\Factory\PropertyAccessDecorator->createView() (vendor/symfony/form/ChoiceList/Factory/CachingFactoryDecorator.php:235) at Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator->createView() (vendor/symfony/form/Extension/Core/Type/ChoiceType.php:496) at Symfony\Component\Form\Extension\Core\Type\ChoiceType->createChoiceListView() (vendor/symfony/form/Extension/Core/Type/ChoiceType.php:253) at Symfony\Component\Form\Extension\Core\Type\ChoiceType->buildView() (vendor/symfony/form/ResolvedFormType.php:147) at Symfony\Component\Form\ResolvedFormType->buildView() (vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:103) at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildView() (vendor/symfony/form/ResolvedFormType.php:144) at Symfony\Component\Form\ResolvedFormType->buildView() (vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:103) at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildView() (vendor/symfony/form/Form.php:1062) at Symfony\Component\Form\Form->createView() (vendor/symfony/form/Form.php:1065) at Symfony\Component\Form\Form->createView() (src/Controller/Frontend/DatasetController.php:284) at App\Controller\Frontend\DatasetController->form() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:20) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:44) at Doctrine\DBAL\Driver\PDOConnection->__construct() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php:27) at Doctrine\DBAL\Driver\PDOPgSql\Driver->connect() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:412) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1952) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1290) at Doctrine\DBAL\Connection->executeQuery() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:31) at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute() (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:325) at Doctrine\ORM\Query->_doExecute() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1212) at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1166) at Doctrine\ORM\AbstractQuery->execute() (vendor/symfony/doctrine-bridge/Form/ChoiceList/ORMQueryBuilderLoader.php:49) at Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader->getEntities() (vendor/symfony/doctrine-bridge/Form/ChoiceList/DoctrineChoiceLoader.php:58) at Symfony\Bridge\Doctrine\Form\ChoiceList\DoctrineChoiceLoader->loadChoices() (vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php:36) at Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader->loadChoiceList() (vendor/symfony/form/ChoiceList/LazyChoiceList.php:61) at Symfony\Component\Form\ChoiceList\LazyChoiceList->getChoices() (vendor/symfony/form/ChoiceList/Factory/DefaultChoiceListFactory.php:81) at Symfony\Component\Form\ChoiceList\Factory\DefaultChoiceListFactory->createView() (vendor/symfony/form/ChoiceList/Factory/PropertyAccessDecorator.php:230) at Symfony\Component\Form\ChoiceList\Factory\PropertyAccessDecorator->createView() (vendor/symfony/form/ChoiceList/Factory/CachingFactoryDecorator.php:235) at Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator->createView() (vendor/symfony/form/Extension/Core/Type/ChoiceType.php:496) at Symfony\Component\Form\Extension\Core\Type\ChoiceType->createChoiceListView() (vendor/symfony/form/Extension/Core/Type/ChoiceType.php:253) at Symfony\Component\Form\Extension\Core\Type\ChoiceType->buildView() (vendor/symfony/form/ResolvedFormType.php:147) at Symfony\Component\Form\ResolvedFormType->buildView() (vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:103) at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildView() (vendor/symfony/form/ResolvedFormType.php:144) at Symfony\Component\Form\ResolvedFormType->buildView() (vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:103) at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildView() (vendor/symfony/form/Form.php:1062) at Symfony\Component\Form\Form->createView() (vendor/symfony/form/Form.php:1065) at Symfony\Component\Form\Form->createView() (src/Controller/Frontend/DatasetController.php:284) at App\Controller\Frontend\DatasetController->form() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:20) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40 at PDO->__construct() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40) at Doctrine\DBAL\Driver\PDOConnection->__construct() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php:27) at Doctrine\DBAL\Driver\PDOPgSql\Driver->connect() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:412) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1952) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1290) at Doctrine\DBAL\Connection->executeQuery() (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:31) at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute() (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:325) at Doctrine\ORM\Query->_doExecute() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1212) at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache() (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1166) at Doctrine\ORM\AbstractQuery->execute() (vendor/symfony/doctrine-bridge/Form/ChoiceList/ORMQueryBuilderLoader.php:49) at Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader->getEntities() (vendor/symfony/doctrine-bridge/Form/ChoiceList/DoctrineChoiceLoader.php:58) at Symfony\Bridge\Doctrine\Form\ChoiceList\DoctrineChoiceLoader->loadChoices() (vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php:36) at Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader->loadChoiceList() (vendor/symfony/form/ChoiceList/LazyChoiceList.php:61) at Symfony\Component\Form\ChoiceList\LazyChoiceList->getChoices() (vendor/symfony/form/ChoiceList/Factory/DefaultChoiceListFactory.php:81) at Symfony\Component\Form\ChoiceList\Factory\DefaultChoiceListFactory->createView() (vendor/symfony/form/ChoiceList/Factory/PropertyAccessDecorator.php:230) at Symfony\Component\Form\ChoiceList\Factory\PropertyAccessDecorator->createView() (vendor/symfony/form/ChoiceList/Factory/CachingFactoryDecorator.php:235) at Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator->createView() (vendor/symfony/form/Extension/Core/Type/ChoiceType.php:496) at Symfony\Component\Form\Extension\Core\Type\ChoiceType->createChoiceListView() (vendor/symfony/form/Extension/Core/Type/ChoiceType.php:253) at Symfony\Component\Form\Extension\Core\Type\ChoiceType->buildView() (vendor/symfony/form/ResolvedFormType.php:147) at Symfony\Component\Form\ResolvedFormType->buildView() (vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:103) at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildView() (vendor/symfony/form/ResolvedFormType.php:144) at Symfony\Component\Form\ResolvedFormType->buildView() (vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:103) at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildView() (vendor/symfony/form/Form.php:1062) at Symfony\Component\Form\Form->createView() (vendor/symfony/form/Form.php:1065) at Symfony\Component\Form\Form->createView() (src/Controller/Frontend/DatasetController.php:284) at App\Controller\Frontend\DatasetController->form() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:20) |