Exceptions
Exceptions 3
Doctrine\DBAL\Exception\ DriverException
case 1364:
case 1566:
return new NotNullConstraintViolationException($exception, $query);
}
return new DriverException($exception, $query);
}
}
in
vendor/doctrine/dbal/src/Connection.php
->
convert
(line 1943)
private function handleDriverException(
Driver\Exception $driverException,
?Query $query
): DriverException {
$this->exceptionConverter ??= $this->_driver->getExceptionConverter();
$exception = $this->exceptionConverter->convert($driverException, $query);
if ($exception instanceof ConnectionLost) {
$this->close();
}
in
vendor/doctrine/dbal/src/Connection.php
->
handleDriverException
(line 1891)
}
/** @internal */
final public function convertException(Driver\Exception $e): DriverException
{
return $this->handleDriverException($e, null);
}
/**
* @param array<int, mixed>|array<string, mixed> $params
* @param array<int, int|string|Type|null>|array<string, int|string|Type|null> $types
in
vendor/doctrine/dbal/src/Connection.php
->
convertException
(line 380)
}
try {
$this->_conn = $this->_driver->connect($this->params);
} catch (Driver\Exception $e) {
throw $this->convertException($e);
}
if ($this->autoCommit === false) {
$this->beginTransaction();
}
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 1659)
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
return $this->_conn;
}
/** @return resource|object */
in
vendor/doctrine/dbal/src/Connection.php
->
getWrappedConnection
(line 1082)
): Result {
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger !== null) {
$logger->startQuery($sql, $params, $types);
}
in
vendor/doctrine/orm/src/Query/Exec/SingleSelectExecutor.php
->
executeQuery
(line 33)
*
* @return Result
*/
public function execute(Connection $conn, array $params, array $types)
{
return $conn->executeQuery($this->sqlStatements, $params, $types, $this->queryCacheProfile);
}
}
in
vendor/doctrine/orm/src/Query.php
->
execute
(line 327)
$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/src/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/src/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/doctrine/orm/src/AbstractQuery.php
->
execute
(line 901)
*
* @return mixed
*/
public function getResult($hydrationMode = self::HYDRATE_OBJECT)
{
return $this->execute(null, $hydrationMode);
}
/**
* Gets the array of results for the query.
*
$dql = 'SELECT b from App:Batch b WHERE b.open <=:today AND b.applyDeadline >= :today ORDER BY b.open DESC';
$query = $this->getEntityManager()
->createQuery($dql)
->setParameter('today', $today);
return $query->getResult();
}
}
*
* @Route("/", name="homepage")
*/
public function homepage(EntityManagerInterface $em): Response
{
$batches = $em->getRepository(Batch::class)->getCurrents();
$announcements = $em->getRepository(Announcement::class)->last();
$currentReviewBatch = $em->getRepository(ReviewBatch::class)->findOneByCurrent(true);
return $this->render('default/homepage.html.twig', [
'batches' => $batches,
in
vendor/symfony/http-kernel/HttpKernel.php
->
homepage
(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;
}
}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
in
vendor/autoload_runtime.php
->
run
(line 35)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
Doctrine\DBAL\Driver\PDO\ Exception
in
vendor/doctrine/dbal/src/Driver/PDO/Exception.php
(line 28)
} else {
$code = $exception->getCode();
$sqlState = null;
}
return new self($exception->getMessage(), $sqlState, $code, $exception);
}
}
in
vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php
::
new
(line 40)
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
return new Connection($pdo);
}
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php
->
connect
(line 29)
*/
public function connect(
#[SensitiveParameter]
array $params
) {
return $this->wrappedDriver->connect($params);
}
/**
* {@inheritDoc}
*/
in
vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php
->
connect
(line 41)
$this->connectionName = $connectionName;
}
public function connect(array $params): ConnectionInterface
{
$connection = parent::connect($params);
if ('void' !== (string) (new \ReflectionMethod(DriverInterface\Connection::class, 'commit'))->getReturnType()) {
return new DBAL3\Connection(
$connection,
$this->debugDataHolder,
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 378)
if ($this->_conn !== null) {
return false;
}
try {
$this->_conn = $this->_driver->connect($this->params);
} catch (Driver\Exception $e) {
throw $this->convertException($e);
}
if ($this->autoCommit === false) {
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 1659)
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
return $this->_conn;
}
/** @return resource|object */
in
vendor/doctrine/dbal/src/Connection.php
->
getWrappedConnection
(line 1082)
): Result {
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger !== null) {
$logger->startQuery($sql, $params, $types);
}
in
vendor/doctrine/orm/src/Query/Exec/SingleSelectExecutor.php
->
executeQuery
(line 33)
*
* @return Result
*/
public function execute(Connection $conn, array $params, array $types)
{
return $conn->executeQuery($this->sqlStatements, $params, $types, $this->queryCacheProfile);
}
}
in
vendor/doctrine/orm/src/Query.php
->
execute
(line 327)
$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/src/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/src/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/doctrine/orm/src/AbstractQuery.php
->
execute
(line 901)
*
* @return mixed
*/
public function getResult($hydrationMode = self::HYDRATE_OBJECT)
{
return $this->execute(null, $hydrationMode);
}
/**
* Gets the array of results for the query.
*
$dql = 'SELECT b from App:Batch b WHERE b.open <=:today AND b.applyDeadline >= :today ORDER BY b.open DESC';
$query = $this->getEntityManager()
->createQuery($dql)
->setParameter('today', $today);
return $query->getResult();
}
}
*
* @Route("/", name="homepage")
*/
public function homepage(EntityManagerInterface $em): Response
{
$batches = $em->getRepository(Batch::class)->getCurrents();
$announcements = $em->getRepository(Announcement::class)->last();
$currentReviewBatch = $em->getRepository(ReviewBatch::class)->findOneByCurrent(true);
return $this->render('default/homepage.html.twig', [
'batches' => $batches,
in
vendor/symfony/http-kernel/HttpKernel.php
->
homepage
(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;
}
}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
in
vendor/autoload_runtime.php
->
run
(line 35)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
PDOException
in
vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php
(line 34)
$safeParams = $params;
unset($safeParams['password'], $safeParams['url']);
try {
$pdo = new PDO(
$this->constructPdoDsn($safeParams),
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
} catch (PDOException $exception) {
in
vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php
->
__construct
(line 34)
$safeParams = $params;
unset($safeParams['password'], $safeParams['url']);
try {
$pdo = new PDO(
$this->constructPdoDsn($safeParams),
$params['user'] ?? '',
$params['password'] ?? '',
$driverOptions,
);
} catch (PDOException $exception) {
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php
->
connect
(line 29)
*/
public function connect(
#[SensitiveParameter]
array $params
) {
return $this->wrappedDriver->connect($params);
}
/**
* {@inheritDoc}
*/
in
vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php
->
connect
(line 41)
$this->connectionName = $connectionName;
}
public function connect(array $params): ConnectionInterface
{
$connection = parent::connect($params);
if ('void' !== (string) (new \ReflectionMethod(DriverInterface\Connection::class, 'commit'))->getReturnType()) {
return new DBAL3\Connection(
$connection,
$this->debugDataHolder,
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 378)
if ($this->_conn !== null) {
return false;
}
try {
$this->_conn = $this->_driver->connect($this->params);
} catch (Driver\Exception $e) {
throw $this->convertException($e);
}
if ($this->autoCommit === false) {
in
vendor/doctrine/dbal/src/Connection.php
->
connect
(line 1659)
'https://github.com/doctrine/dbal/issues/4966',
'Connection::getWrappedConnection() is deprecated.'
. ' Use Connection::getNativeConnection() to access the native connection.',
);
$this->connect();
return $this->_conn;
}
/** @return resource|object */
in
vendor/doctrine/dbal/src/Connection.php
->
getWrappedConnection
(line 1082)
): Result {
if ($qcp !== null) {
return $this->executeCacheQuery($sql, $params, $types, $qcp);
}
$connection = $this->getWrappedConnection();
$logger = $this->_config->getSQLLogger();
if ($logger !== null) {
$logger->startQuery($sql, $params, $types);
}
in
vendor/doctrine/orm/src/Query/Exec/SingleSelectExecutor.php
->
executeQuery
(line 33)
*
* @return Result
*/
public function execute(Connection $conn, array $params, array $types)
{
return $conn->executeQuery($this->sqlStatements, $params, $types, $this->queryCacheProfile);
}
}
in
vendor/doctrine/orm/src/Query.php
->
execute
(line 327)
$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/src/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/src/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/doctrine/orm/src/AbstractQuery.php
->
execute
(line 901)
*
* @return mixed
*/
public function getResult($hydrationMode = self::HYDRATE_OBJECT)
{
return $this->execute(null, $hydrationMode);
}
/**
* Gets the array of results for the query.
*
$dql = 'SELECT b from App:Batch b WHERE b.open <=:today AND b.applyDeadline >= :today ORDER BY b.open DESC';
$query = $this->getEntityManager()
->createQuery($dql)
->setParameter('today', $today);
return $query->getResult();
}
}
*
* @Route("/", name="homepage")
*/
public function homepage(EntityManagerInterface $em): Response
{
$batches = $em->getRepository(Batch::class)->getCurrents();
$announcements = $em->getRepository(Announcement::class)->last();
$currentReviewBatch = $em->getRepository(ReviewBatch::class)->findOneByCurrent(true);
return $this->render('default/homepage.html.twig', [
'batches' => $batches,
in
vendor/symfony/http-kernel/HttpKernel.php
->
homepage
(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;
}
}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
in
vendor/autoload_runtime.php
->
run
(line 35)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
Stack Traces 3
[3/3]
DriverException
|
---|
Doctrine\DBAL\Exception\DriverException: An exception occurred in the driver: SQLSTATE[08004] [1040] Too many connections at vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:117 at Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert() (vendor/doctrine/dbal/src/Connection.php:1943) at Doctrine\DBAL\Connection->handleDriverException() (vendor/doctrine/dbal/src/Connection.php:1891) at Doctrine\DBAL\Connection->convertException() (vendor/doctrine/dbal/src/Connection.php:380) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1659) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1082) at Doctrine\DBAL\Connection->executeQuery() (vendor/doctrine/orm/src/Query/Exec/SingleSelectExecutor.php:33) at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute() (vendor/doctrine/orm/src/Query.php:327) at Doctrine\ORM\Query->_doExecute() (vendor/doctrine/orm/src/AbstractQuery.php:1212) at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache() (vendor/doctrine/orm/src/AbstractQuery.php:1166) at Doctrine\ORM\AbstractQuery->execute() (vendor/doctrine/orm/src/AbstractQuery.php:901) at Doctrine\ORM\AbstractQuery->getResult() (src/Repository/BatchRepository.php:36) at App\Repository\BatchRepository->getCurrents() (src/Controller/DefaultController.php:29) at App\Controller\DefaultController->homepage() (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() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:35) at require_once('/home/projects/pms/vendor/autoload_runtime.php') (public/index.php:5) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[08004] [1040] Too many connections at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:40) at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect() (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29) at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect() (vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:41) at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect() (vendor/doctrine/dbal/src/Connection.php:378) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1659) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1082) at Doctrine\DBAL\Connection->executeQuery() (vendor/doctrine/orm/src/Query/Exec/SingleSelectExecutor.php:33) at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute() (vendor/doctrine/orm/src/Query.php:327) at Doctrine\ORM\Query->_doExecute() (vendor/doctrine/orm/src/AbstractQuery.php:1212) at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache() (vendor/doctrine/orm/src/AbstractQuery.php:1166) at Doctrine\ORM\AbstractQuery->execute() (vendor/doctrine/orm/src/AbstractQuery.php:901) at Doctrine\ORM\AbstractQuery->getResult() (src/Repository/BatchRepository.php:36) at App\Repository\BatchRepository->getCurrents() (src/Controller/DefaultController.php:29) at App\Controller\DefaultController->homepage() (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() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:35) at require_once('/home/projects/pms/vendor/autoload_runtime.php') (public/index.php:5) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[08004] [1040] Too many connections at vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:34 at PDO->__construct() (vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:34) at Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect() (vendor/doctrine/dbal/src/Driver/Middleware/AbstractDriverMiddleware.php:29) at Doctrine\DBAL\Driver\Middleware\AbstractDriverMiddleware->connect() (vendor/symfony/doctrine-bridge/Middleware/Debug/Driver.php:41) at Symfony\Bridge\Doctrine\Middleware\Debug\Driver->connect() (vendor/doctrine/dbal/src/Connection.php:378) at Doctrine\DBAL\Connection->connect() (vendor/doctrine/dbal/src/Connection.php:1659) at Doctrine\DBAL\Connection->getWrappedConnection() (vendor/doctrine/dbal/src/Connection.php:1082) at Doctrine\DBAL\Connection->executeQuery() (vendor/doctrine/orm/src/Query/Exec/SingleSelectExecutor.php:33) at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute() (vendor/doctrine/orm/src/Query.php:327) at Doctrine\ORM\Query->_doExecute() (vendor/doctrine/orm/src/AbstractQuery.php:1212) at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache() (vendor/doctrine/orm/src/AbstractQuery.php:1166) at Doctrine\ORM\AbstractQuery->execute() (vendor/doctrine/orm/src/AbstractQuery.php:901) at Doctrine\ORM\AbstractQuery->getResult() (src/Repository/BatchRepository.php:36) at App\Repository\BatchRepository->getCurrents() (src/Controller/DefaultController.php:29) at App\Controller\DefaultController->homepage() (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() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:35) at require_once('/home/projects/pms/vendor/autoload_runtime.php') (public/index.php:5) |