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/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 750)
{
$this->switchPersisterContext(null, $limit);
$sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
[$params, $types] = $this->expandParameters($criteria);
$stmt = $this->conn->executeQuery($sql, $params, $types);
if ($entity !== null) {
$hints[Query::HINT_REFRESH] = true;
$hints[Query::HINT_REFRESH_ENTITY] = $entity;
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php
->
load
(line 768)
/**
* {@inheritdoc}
*/
public function loadById(array $identifier, $entity = null)
{
return $this->load($identifier, $entity);
}
/**
* {@inheritdoc}
*/
in
vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php
->
loadById
(line 521)
case $lockMode === LockMode::PESSIMISTIC_READ:
case $lockMode === LockMode::PESSIMISTIC_WRITE:
return $persister->load($sortedId, null, null, [], $lockMode);
default:
return $persister->loadById($sortedId);
}
}
/**
* {@inheritDoc}
in
var/cache/dev/ContainerF3J4NcO/EntityManager_9a5be93.php
->
find
(line 143)
public function find($className, $id, $lockMode = null, $lockVersion = null)
{
$this->initializer56dfc && ($this->initializer56dfc->__invoke($valueHolderd14db, $this, 'find', array('className' => $className, 'id' => $id, 'lockMode' => $lockMode, 'lockVersion' => $lockVersion), $this->initializer56dfc) || 1) && $this->valueHolderd14db = $valueHolderd14db;
return $this->valueHolderd14db->find($className, $id, $lockMode, $lockVersion);
}
public function getReference($entityName, $id)
{
$this->initializer56dfc && ($this->initializer56dfc->__invoke($valueHolderd14db, $this, 'getReference', array('entityName' => $entityName, 'id' => $id), $this->initializer56dfc) || 1) && $this->valueHolderd14db = $valueHolderd14db;
in
vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php
->
find
(line 197)
* @return object|null The entity instance or NULL if the entity can not be found.
* @psalm-return ?T
*/
public function find($id, $lockMode = null, $lockVersion = null)
{
return $this->_em->find($this->_entityName, $id, $lockMode, $lockVersion);
}
/**
* Finds all entities in the repository.
*
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php
->
find
(line 142)
$cacheProvider->evictEntity($class, $id);
}
}
try {
return $om->getRepository($class)->$method($id);
} catch (NoResultException $e) {
return;
} catch (ConversionException $e) {
return;
}
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php
->
find
(line 91)
if (null === $object) {
$errorMessage = sprintf('The expression "%s" returned null', $expr);
}
// find by identifier?
} elseif (false === $object = $this->find($class, $request, $options, $name)) {
// find by criteria
if (false === $object = $this->findOneBy($class, $request, $options)) {
if ($configuration->isOptional()) {
$object = null;
} else {
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php
->
apply
(line 84)
return;
}
foreach ($this->all() as $converter) {
if ($converter->supports($configuration)) {
if ($converter->apply($request, $configuration)) {
return;
}
}
}
}
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php
->
applyConverter
(line 48)
if (\is_object($configurations)) {
$configurations = [$configurations];
}
foreach ($configurations as $configuration) {
$this->applyConverter($request, $configuration);
}
}
/**
* Applies converter on request based on the given configuration.
in
vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php
->
apply
(line 72)
// 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) {
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelController
(line 118)
$this->priority = $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 230)
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 59)
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 154)
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
$this->dispatcher->dispatch($event, $eventName);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 151)
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 ControllerEvent($this, $controller, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);
$controller = $event->getController();
// controller arguments
$arguments = $this->argumentResolver->getArguments($request, $controller);
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/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 750)
{
$this->switchPersisterContext(null, $limit);
$sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
[$params, $types] = $this->expandParameters($criteria);
$stmt = $this->conn->executeQuery($sql, $params, $types);
if ($entity !== null) {
$hints[Query::HINT_REFRESH] = true;
$hints[Query::HINT_REFRESH_ENTITY] = $entity;
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php
->
load
(line 768)
/**
* {@inheritdoc}
*/
public function loadById(array $identifier, $entity = null)
{
return $this->load($identifier, $entity);
}
/**
* {@inheritdoc}
*/
in
vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php
->
loadById
(line 521)
case $lockMode === LockMode::PESSIMISTIC_READ:
case $lockMode === LockMode::PESSIMISTIC_WRITE:
return $persister->load($sortedId, null, null, [], $lockMode);
default:
return $persister->loadById($sortedId);
}
}
/**
* {@inheritDoc}
in
var/cache/dev/ContainerF3J4NcO/EntityManager_9a5be93.php
->
find
(line 143)
public function find($className, $id, $lockMode = null, $lockVersion = null)
{
$this->initializer56dfc && ($this->initializer56dfc->__invoke($valueHolderd14db, $this, 'find', array('className' => $className, 'id' => $id, 'lockMode' => $lockMode, 'lockVersion' => $lockVersion), $this->initializer56dfc) || 1) && $this->valueHolderd14db = $valueHolderd14db;
return $this->valueHolderd14db->find($className, $id, $lockMode, $lockVersion);
}
public function getReference($entityName, $id)
{
$this->initializer56dfc && ($this->initializer56dfc->__invoke($valueHolderd14db, $this, 'getReference', array('entityName' => $entityName, 'id' => $id), $this->initializer56dfc) || 1) && $this->valueHolderd14db = $valueHolderd14db;
in
vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php
->
find
(line 197)
* @return object|null The entity instance or NULL if the entity can not be found.
* @psalm-return ?T
*/
public function find($id, $lockMode = null, $lockVersion = null)
{
return $this->_em->find($this->_entityName, $id, $lockMode, $lockVersion);
}
/**
* Finds all entities in the repository.
*
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php
->
find
(line 142)
$cacheProvider->evictEntity($class, $id);
}
}
try {
return $om->getRepository($class)->$method($id);
} catch (NoResultException $e) {
return;
} catch (ConversionException $e) {
return;
}
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php
->
find
(line 91)
if (null === $object) {
$errorMessage = sprintf('The expression "%s" returned null', $expr);
}
// find by identifier?
} elseif (false === $object = $this->find($class, $request, $options, $name)) {
// find by criteria
if (false === $object = $this->findOneBy($class, $request, $options)) {
if ($configuration->isOptional()) {
$object = null;
} else {
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php
->
apply
(line 84)
return;
}
foreach ($this->all() as $converter) {
if ($converter->supports($configuration)) {
if ($converter->apply($request, $configuration)) {
return;
}
}
}
}
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php
->
applyConverter
(line 48)
if (\is_object($configurations)) {
$configurations = [$configurations];
}
foreach ($configurations as $configuration) {
$this->applyConverter($request, $configuration);
}
}
/**
* Applies converter on request based on the given configuration.
in
vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php
->
apply
(line 72)
// 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) {
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelController
(line 118)
$this->priority = $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 230)
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 59)
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 154)
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
$this->dispatcher->dispatch($event, $eventName);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 151)
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 ControllerEvent($this, $controller, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);
$controller = $event->getController();
// controller arguments
$arguments = $this->argumentResolver->getArguments($request, $controller);
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/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 750)
{
$this->switchPersisterContext(null, $limit);
$sql = $this->getSelectSQL($criteria, $assoc, $lockMode, $limit, null, $orderBy);
[$params, $types] = $this->expandParameters($criteria);
$stmt = $this->conn->executeQuery($sql, $params, $types);
if ($entity !== null) {
$hints[Query::HINT_REFRESH] = true;
$hints[Query::HINT_REFRESH_ENTITY] = $entity;
}
in
vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php
->
load
(line 768)
/**
* {@inheritdoc}
*/
public function loadById(array $identifier, $entity = null)
{
return $this->load($identifier, $entity);
}
/**
* {@inheritdoc}
*/
in
vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php
->
loadById
(line 521)
case $lockMode === LockMode::PESSIMISTIC_READ:
case $lockMode === LockMode::PESSIMISTIC_WRITE:
return $persister->load($sortedId, null, null, [], $lockMode);
default:
return $persister->loadById($sortedId);
}
}
/**
* {@inheritDoc}
in
var/cache/dev/ContainerF3J4NcO/EntityManager_9a5be93.php
->
find
(line 143)
public function find($className, $id, $lockMode = null, $lockVersion = null)
{
$this->initializer56dfc && ($this->initializer56dfc->__invoke($valueHolderd14db, $this, 'find', array('className' => $className, 'id' => $id, 'lockMode' => $lockMode, 'lockVersion' => $lockVersion), $this->initializer56dfc) || 1) && $this->valueHolderd14db = $valueHolderd14db;
return $this->valueHolderd14db->find($className, $id, $lockMode, $lockVersion);
}
public function getReference($entityName, $id)
{
$this->initializer56dfc && ($this->initializer56dfc->__invoke($valueHolderd14db, $this, 'getReference', array('entityName' => $entityName, 'id' => $id), $this->initializer56dfc) || 1) && $this->valueHolderd14db = $valueHolderd14db;
in
vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php
->
find
(line 197)
* @return object|null The entity instance or NULL if the entity can not be found.
* @psalm-return ?T
*/
public function find($id, $lockMode = null, $lockVersion = null)
{
return $this->_em->find($this->_entityName, $id, $lockMode, $lockVersion);
}
/**
* Finds all entities in the repository.
*
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php
->
find
(line 142)
$cacheProvider->evictEntity($class, $id);
}
}
try {
return $om->getRepository($class)->$method($id);
} catch (NoResultException $e) {
return;
} catch (ConversionException $e) {
return;
}
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php
->
find
(line 91)
if (null === $object) {
$errorMessage = sprintf('The expression "%s" returned null', $expr);
}
// find by identifier?
} elseif (false === $object = $this->find($class, $request, $options, $name)) {
// find by criteria
if (false === $object = $this->findOneBy($class, $request, $options)) {
if ($configuration->isOptional()) {
$object = null;
} else {
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php
->
apply
(line 84)
return;
}
foreach ($this->all() as $converter) {
if ($converter->supports($configuration)) {
if ($converter->apply($request, $configuration)) {
return;
}
}
}
}
in
vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php
->
applyConverter
(line 48)
if (\is_object($configurations)) {
$configurations = [$configurations];
}
foreach ($configurations as $configuration) {
$this->applyConverter($request, $configuration);
}
}
/**
* Applies converter on request based on the given configuration.
in
vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php
->
apply
(line 72)
// 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) {
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelController
(line 118)
$this->priority = $dispatcher->getListenerPriority($eventName, $this->listener);
$e = $this->stopwatch->start($this->name, 'event_listener');
try {
($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 230)
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 59)
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 154)
try {
$this->beforeDispatch($eventName, $event);
try {
$e = $this->stopwatch->start($eventName, 'section');
try {
$this->dispatcher->dispatch($event, $eventName);
} finally {
if ($e->isStarted()) {
$e->stop();
}
}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 151)
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 ControllerEvent($this, $controller, $request, $type);
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER);
$controller = $event->getController();
// controller arguments
$arguments = $this->argumentResolver->getArguments($request, $controller);
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/Persisters/Entity/BasicEntityPersister.php:750) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load() (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:768) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById() (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:521) at Doctrine\ORM\EntityManager->find() (var/cache/dev/ContainerF3J4NcO/EntityManager_9a5be93.php:143) at ContainerF3J4NcO\EntityManager_9a5be93->find() (vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:197) at Doctrine\ORM\EntityRepository->find() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:142) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->find() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:91) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->apply() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:84) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->applyConverter() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:48) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->apply() (vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php:72) at Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener->onKernelController() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke() (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/symfony/http-kernel/HttpKernel.php:151) 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/Persisters/Entity/BasicEntityPersister.php:750) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load() (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:768) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById() (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:521) at Doctrine\ORM\EntityManager->find() (var/cache/dev/ContainerF3J4NcO/EntityManager_9a5be93.php:143) at ContainerF3J4NcO\EntityManager_9a5be93->find() (vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:197) at Doctrine\ORM\EntityRepository->find() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:142) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->find() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:91) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->apply() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:84) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->applyConverter() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:48) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->apply() (vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php:72) at Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener->onKernelController() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke() (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/symfony/http-kernel/HttpKernel.php:151) 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/Persisters/Entity/BasicEntityPersister.php:750) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load() (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:768) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById() (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:521) at Doctrine\ORM\EntityManager->find() (var/cache/dev/ContainerF3J4NcO/EntityManager_9a5be93.php:143) at ContainerF3J4NcO\EntityManager_9a5be93->find() (vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php:197) at Doctrine\ORM\EntityRepository->find() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:142) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->find() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/DoctrineParamConverter.php:91) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->apply() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:84) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->applyConverter() (vendor/sensio/framework-extra-bundle/src/Request/ParamConverter/ParamConverterManager.php:48) at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->apply() (vendor/sensio/framework-extra-bundle/src/EventListener/ParamConverterListener.php:72) at Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener->onKernelController() (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118) at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke() (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners() (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch() (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154) at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch() (vendor/symfony/http-kernel/HttpKernel.php:151) 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) |