Exceptions
Exceptions 3
Doctrine\DBAL\Exception\ DriverException
Show exception properties
Doctrine\DBAL\Exception\DriverException {#995 -query: Doctrine\DBAL\Query {#993 -sql: "SELECT t0.estimate_material_id AS estimate_material_id_1, t0.created_at AS created_at_2, t0.deleted_at AS deleted_at_3, t0.key AS key_4, t0.quantity_real AS quantity_real_5, t0.quantity AS quantity_6, t0.price AS price_7, t0.amount AS amount_8, t0.estimate_work_id AS estimate_work_id_9, t0.material_id AS material_id_10 FROM estimate_estimates_materials t0 WHERE t0.estimate_material_id = ?" -params: array:1 [ 0 => "batch-delete" ] -types: array:1 [ 0 => "integer" ] } }
// We have to match against the SQLSTATE in the error message in these cases.if ($exception->getCode() === 7 && strpos($exception->getMessage(), 'SQLSTATE[08006]') !== false) {return new ConnectionException($exception, $query);}return new DriverException($exception, $query);}}
in
vendor/doctrine/dbal/src/Connection.php
->
convert
(line 1976)
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 1918)
Driver\Exception $e,string $sql,array $params = [],array $types = []): DriverException {return $this->handleDriverException($e, new Query($sql, $params, $types));}/** @internal */final public function convertException(Driver\Exception $e): DriverException{
in
vendor/doctrine/dbal/src/Connection.php
->
convertExceptionDuringQuery
(line 1111)
$result = $connection->query($sql);}return new Result($result, $this);} catch (Driver\Exception $e) {throw $this->convertExceptionDuringQuery($e, $sql, $params, $types);} finally {if ($logger !== null) {$logger->stopQuery();}}
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 738)
): object|null {$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/src/Persisters/Entity/BasicEntityPersister.php
->
load
(line 756)
/*** {@inheritDoc}*/public function loadById(array $identifier, object|null $entity = null): object|null{return $this->load($identifier, $entity);}/*** {@inheritDoc}*/
in
vendor/doctrine/orm/src/EntityManager.php
->
loadById
(line 366)
case $lockMode === LockMode::PESSIMISTIC_READ:case $lockMode === LockMode::PESSIMISTIC_WRITE:return $persister->load($sortedId, null, null, [], $lockMode);default:return $persister->loadById($sortedId);}}public function getReference(string $entityName, mixed $id): object|null{
in
vendor/doctrine/orm/src/EntityRepository.php
->
find
(line 86)
* @return object|null The entity instance or NULL if the entity can not be found.* @phpstan-return ?T*/public function find(mixed $id, LockMode|int|null $lockMode = null, int|null $lockVersion = null): object|null{return $this->em->find($this->entityName, $id, $lockMode, $lockVersion);}/*** Finds all entities in the repository.*
in
vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php
->
find
(line 193)
* @param class-string $entityFqcn*/private function getEntityInstance(string $entityFqcn, mixed $entityIdValue): object{$entityManager = $this->getEntityManager($entityFqcn);if (null === $entityInstance = $entityManager->getRepository($entityFqcn)->find($entityIdValue)) {$entityIdName = $entityManager->getClassMetadata($entityFqcn)->getIdentifierFieldNames()[0];throw new EntityNotFoundException(['entity_name' => $entityFqcn, 'entity_id_name' => $entityIdName, 'entity_id_value' => $entityIdValue]);}
in
vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php
->
getEntityInstance
(line 152)
* @param class-string|null $entityFqcn*/private function doCreate(?string $entityFqcn = null, mixed $entityId = null, string|Expression|null $entityPermission = null, ?object $entityInstance = null): EntityDto{if (null === $entityInstance && null !== $entityFqcn) {$entityInstance = null === $entityId ? null : $this->getEntityInstance($entityFqcn, $entityId);}if (null !== $entityInstance && null === $entityFqcn) {if ($entityInstance instanceof Proxy) {$entityInstance->__load();
in
vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php
->
doCreate
(line 86)
/*** @param class-string $entityFqcn*/public function create(string $entityFqcn, mixed $entityId = null, string|Expression|null $entityPermission = null): EntityDto{return $this->doCreate($entityFqcn, $entityId, $entityPermission);}/*** @param object $entityInstance*/
in
vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php
->
create
(line 291)
// when using pretty URLs, the entity ID is passed as a request attribute (it's part of the route path);// in legacy URLs, the entity ID is passed as a regular query parameter$entityId = $request->attributes->get(EA::ENTITY_ID) ?? $request->query->get(EA::ENTITY_ID);return $this->entityFactory->create($crudDto->getEntityFqcn(), $entityId, $crudDto->getEntityPermission());}}
in
vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php
->
getEntityDto
(line 78)
$user = $this->getUser($this->tokenStorage);// build a first version of CrudDto without actions so we can create AdminContext, which is// needed for action extensions; later, we'll update the CrudDto object with the full action config$crudDto = $this->getCrudDto($this->adminControllers, $dashboardController, $crudController, new ActionConfigDto(), $filters, $crudAction, $pageName);$entityDto = $this->getEntityDto($request, $crudDto);$searchDto = $this->getSearchDto($request, $crudDto);$i18nDto = $this->getI18nDto($request, $dashboardDto, $crudDto, $entityDto);$templateRegistry = $this->getTemplateRegistry($dashboardController, $crudDto);$usePrettyUrls = $this->adminRouteGenerator->usesPrettyUrls();
in
vendor/easycorp/easyadmin-bundle/src/EventListener/AdminRouterSubscriber.php
->
create
(line 135)
$actionName = $request->attributes->get(EA::CRUD_ACTION);$crudControllerInstance = $this->controllerFactory->getCrudControllerInstance($crudControllerFqcn, $actionName, $request);try {$adminContext = $this->adminContextFactory->create($request, $dashboardControllerInstance, $crudControllerInstance, $actionName);} catch (BaseException $e) {// if context creation fails (e.g. entity not found), create a context// without the entity so the ExceptionListener can still render the// EasyAdmin error page with the proper layout$entityId = $request->attributes->get(EA::ENTITY_ID) ?? $request->query->get(EA::ENTITY_ID);
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelRequestPrettyUrls
(line 115)
$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 206)
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 56)
} else {$listeners = $this->getListeners($eventName);}if ($listeners) {$this->callListeners($listeners, $eventName, $event);}return $event;}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 126)
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 159)
*/private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response{// request$event = new RequestEvent($this, $request, $type);$this->dispatcher->dispatch($event, KernelEvents::REQUEST);if ($event->hasResponse()) {return $this->filterResponse($event->getResponse(), $request, $type);}
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 182)
$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)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 29)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse Shared\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {$APP_ENV = $context['APP_ENV'];$APP_DEBUG = $context['APP_DEBUG'];$APP_ID = $context['APP_ID'];
Doctrine\DBAL\Driver\PDO\ Exception
in
vendor/doctrine/dbal/src/Driver/PDO/Exception.php
(line 24)
} else {$code = $exception->getCode();$sqlState = null;}return new self($exception->getMessage(), $sqlState, $code, $exception);}}
in
vendor/doctrine/dbal/src/Driver/PDO/Statement.php
::
new
(line 132)
}try {$this->stmt->execute($params);} catch (PDOException $exception) {throw Exception::new($exception);}return new Result($this->stmt);}}
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php
->
execute
(line 69)
/*** {@inheritDoc}*/public function execute($params = null): Result{return $this->wrappedStatement->execute($params);}}
in
vendor/doctrine/dbal/src/Logging/Statement.php
->
execute
(line 98)
'sql' => $this->sql,'params' => $params ?? $this->params,'types' => $this->types,]);return parent::execute($params);}}
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php
->
execute
(line 69)
/*** {@inheritDoc}*/public function execute($params = null): Result{return $this->wrappedStatement->execute($params);}}
in
vendor/symfony/doctrine-bridge/Middleware/Debug/DBAL3/Statement.php
->
execute
(line 70)
$this->stopwatch?->start('doctrine', 'doctrine');$query->start();try {return parent::execute($params);} finally {$query->stop();$this->stopwatch?->stop('doctrine');}}
in
vendor/doctrine/dbal/src/Connection.php
->
execute
(line 1104)
$stmt = $connection->prepare($sql);$this->bindParameters($stmt, $params, $types);$result = $stmt->execute();} else {$result = $connection->query($sql);}return new Result($result, $this);
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 738)
): object|null {$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/src/Persisters/Entity/BasicEntityPersister.php
->
load
(line 756)
/*** {@inheritDoc}*/public function loadById(array $identifier, object|null $entity = null): object|null{return $this->load($identifier, $entity);}/*** {@inheritDoc}*/
in
vendor/doctrine/orm/src/EntityManager.php
->
loadById
(line 366)
case $lockMode === LockMode::PESSIMISTIC_READ:case $lockMode === LockMode::PESSIMISTIC_WRITE:return $persister->load($sortedId, null, null, [], $lockMode);default:return $persister->loadById($sortedId);}}public function getReference(string $entityName, mixed $id): object|null{
in
vendor/doctrine/orm/src/EntityRepository.php
->
find
(line 86)
* @return object|null The entity instance or NULL if the entity can not be found.* @phpstan-return ?T*/public function find(mixed $id, LockMode|int|null $lockMode = null, int|null $lockVersion = null): object|null{return $this->em->find($this->entityName, $id, $lockMode, $lockVersion);}/*** Finds all entities in the repository.*
in
vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php
->
find
(line 193)
* @param class-string $entityFqcn*/private function getEntityInstance(string $entityFqcn, mixed $entityIdValue): object{$entityManager = $this->getEntityManager($entityFqcn);if (null === $entityInstance = $entityManager->getRepository($entityFqcn)->find($entityIdValue)) {$entityIdName = $entityManager->getClassMetadata($entityFqcn)->getIdentifierFieldNames()[0];throw new EntityNotFoundException(['entity_name' => $entityFqcn, 'entity_id_name' => $entityIdName, 'entity_id_value' => $entityIdValue]);}
in
vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php
->
getEntityInstance
(line 152)
* @param class-string|null $entityFqcn*/private function doCreate(?string $entityFqcn = null, mixed $entityId = null, string|Expression|null $entityPermission = null, ?object $entityInstance = null): EntityDto{if (null === $entityInstance && null !== $entityFqcn) {$entityInstance = null === $entityId ? null : $this->getEntityInstance($entityFqcn, $entityId);}if (null !== $entityInstance && null === $entityFqcn) {if ($entityInstance instanceof Proxy) {$entityInstance->__load();
in
vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php
->
doCreate
(line 86)
/*** @param class-string $entityFqcn*/public function create(string $entityFqcn, mixed $entityId = null, string|Expression|null $entityPermission = null): EntityDto{return $this->doCreate($entityFqcn, $entityId, $entityPermission);}/*** @param object $entityInstance*/
in
vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php
->
create
(line 291)
// when using pretty URLs, the entity ID is passed as a request attribute (it's part of the route path);// in legacy URLs, the entity ID is passed as a regular query parameter$entityId = $request->attributes->get(EA::ENTITY_ID) ?? $request->query->get(EA::ENTITY_ID);return $this->entityFactory->create($crudDto->getEntityFqcn(), $entityId, $crudDto->getEntityPermission());}}
in
vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php
->
getEntityDto
(line 78)
$user = $this->getUser($this->tokenStorage);// build a first version of CrudDto without actions so we can create AdminContext, which is// needed for action extensions; later, we'll update the CrudDto object with the full action config$crudDto = $this->getCrudDto($this->adminControllers, $dashboardController, $crudController, new ActionConfigDto(), $filters, $crudAction, $pageName);$entityDto = $this->getEntityDto($request, $crudDto);$searchDto = $this->getSearchDto($request, $crudDto);$i18nDto = $this->getI18nDto($request, $dashboardDto, $crudDto, $entityDto);$templateRegistry = $this->getTemplateRegistry($dashboardController, $crudDto);$usePrettyUrls = $this->adminRouteGenerator->usesPrettyUrls();
in
vendor/easycorp/easyadmin-bundle/src/EventListener/AdminRouterSubscriber.php
->
create
(line 135)
$actionName = $request->attributes->get(EA::CRUD_ACTION);$crudControllerInstance = $this->controllerFactory->getCrudControllerInstance($crudControllerFqcn, $actionName, $request);try {$adminContext = $this->adminContextFactory->create($request, $dashboardControllerInstance, $crudControllerInstance, $actionName);} catch (BaseException $e) {// if context creation fails (e.g. entity not found), create a context// without the entity so the ExceptionListener can still render the// EasyAdmin error page with the proper layout$entityId = $request->attributes->get(EA::ENTITY_ID) ?? $request->query->get(EA::ENTITY_ID);
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelRequestPrettyUrls
(line 115)
$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 206)
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 56)
} else {$listeners = $this->getListeners($eventName);}if ($listeners) {$this->callListeners($listeners, $eventName, $event);}return $event;}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 126)
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 159)
*/private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response{// request$event = new RequestEvent($this, $request, $type);$this->dispatcher->dispatch($event, KernelEvents::REQUEST);if ($event->hasResponse()) {return $this->filterResponse($event->getResponse(), $request, $type);}
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 182)
$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)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 29)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse Shared\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {$APP_ENV = $context['APP_ENV'];$APP_DEBUG = $context['APP_DEBUG'];$APP_ID = $context['APP_ID'];
PDOException
in
vendor/doctrine/dbal/src/Driver/PDO/Statement.php
(line 130)
. ' Statement::bindParam() or Statement::bindValue() instead.',);}try {$this->stmt->execute($params);} catch (PDOException $exception) {throw Exception::new($exception);}return new Result($this->stmt);
in
vendor/doctrine/dbal/src/Driver/PDO/Statement.php
->
execute
(line 130)
. ' Statement::bindParam() or Statement::bindValue() instead.',);}try {$this->stmt->execute($params);} catch (PDOException $exception) {throw Exception::new($exception);}return new Result($this->stmt);
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php
->
execute
(line 69)
/*** {@inheritDoc}*/public function execute($params = null): Result{return $this->wrappedStatement->execute($params);}}
in
vendor/doctrine/dbal/src/Logging/Statement.php
->
execute
(line 98)
'sql' => $this->sql,'params' => $params ?? $this->params,'types' => $this->types,]);return parent::execute($params);}}
in
vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php
->
execute
(line 69)
/*** {@inheritDoc}*/public function execute($params = null): Result{return $this->wrappedStatement->execute($params);}}
in
vendor/symfony/doctrine-bridge/Middleware/Debug/DBAL3/Statement.php
->
execute
(line 70)
$this->stopwatch?->start('doctrine', 'doctrine');$query->start();try {return parent::execute($params);} finally {$query->stop();$this->stopwatch?->stop('doctrine');}}
in
vendor/doctrine/dbal/src/Connection.php
->
execute
(line 1104)
$stmt = $connection->prepare($sql);$this->bindParameters($stmt, $params, $types);$result = $stmt->execute();} else {$result = $connection->query($sql);}return new Result($result, $this);
in
vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php
->
executeQuery
(line 738)
): object|null {$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/src/Persisters/Entity/BasicEntityPersister.php
->
load
(line 756)
/*** {@inheritDoc}*/public function loadById(array $identifier, object|null $entity = null): object|null{return $this->load($identifier, $entity);}/*** {@inheritDoc}*/
in
vendor/doctrine/orm/src/EntityManager.php
->
loadById
(line 366)
case $lockMode === LockMode::PESSIMISTIC_READ:case $lockMode === LockMode::PESSIMISTIC_WRITE:return $persister->load($sortedId, null, null, [], $lockMode);default:return $persister->loadById($sortedId);}}public function getReference(string $entityName, mixed $id): object|null{
in
vendor/doctrine/orm/src/EntityRepository.php
->
find
(line 86)
* @return object|null The entity instance or NULL if the entity can not be found.* @phpstan-return ?T*/public function find(mixed $id, LockMode|int|null $lockMode = null, int|null $lockVersion = null): object|null{return $this->em->find($this->entityName, $id, $lockMode, $lockVersion);}/*** Finds all entities in the repository.*
in
vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php
->
find
(line 193)
* @param class-string $entityFqcn*/private function getEntityInstance(string $entityFqcn, mixed $entityIdValue): object{$entityManager = $this->getEntityManager($entityFqcn);if (null === $entityInstance = $entityManager->getRepository($entityFqcn)->find($entityIdValue)) {$entityIdName = $entityManager->getClassMetadata($entityFqcn)->getIdentifierFieldNames()[0];throw new EntityNotFoundException(['entity_name' => $entityFqcn, 'entity_id_name' => $entityIdName, 'entity_id_value' => $entityIdValue]);}
in
vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php
->
getEntityInstance
(line 152)
* @param class-string|null $entityFqcn*/private function doCreate(?string $entityFqcn = null, mixed $entityId = null, string|Expression|null $entityPermission = null, ?object $entityInstance = null): EntityDto{if (null === $entityInstance && null !== $entityFqcn) {$entityInstance = null === $entityId ? null : $this->getEntityInstance($entityFqcn, $entityId);}if (null !== $entityInstance && null === $entityFqcn) {if ($entityInstance instanceof Proxy) {$entityInstance->__load();
in
vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php
->
doCreate
(line 86)
/*** @param class-string $entityFqcn*/public function create(string $entityFqcn, mixed $entityId = null, string|Expression|null $entityPermission = null): EntityDto{return $this->doCreate($entityFqcn, $entityId, $entityPermission);}/*** @param object $entityInstance*/
in
vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php
->
create
(line 291)
// when using pretty URLs, the entity ID is passed as a request attribute (it's part of the route path);// in legacy URLs, the entity ID is passed as a regular query parameter$entityId = $request->attributes->get(EA::ENTITY_ID) ?? $request->query->get(EA::ENTITY_ID);return $this->entityFactory->create($crudDto->getEntityFqcn(), $entityId, $crudDto->getEntityPermission());}}
in
vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php
->
getEntityDto
(line 78)
$user = $this->getUser($this->tokenStorage);// build a first version of CrudDto without actions so we can create AdminContext, which is// needed for action extensions; later, we'll update the CrudDto object with the full action config$crudDto = $this->getCrudDto($this->adminControllers, $dashboardController, $crudController, new ActionConfigDto(), $filters, $crudAction, $pageName);$entityDto = $this->getEntityDto($request, $crudDto);$searchDto = $this->getSearchDto($request, $crudDto);$i18nDto = $this->getI18nDto($request, $dashboardDto, $crudDto, $entityDto);$templateRegistry = $this->getTemplateRegistry($dashboardController, $crudDto);$usePrettyUrls = $this->adminRouteGenerator->usesPrettyUrls();
in
vendor/easycorp/easyadmin-bundle/src/EventListener/AdminRouterSubscriber.php
->
create
(line 135)
$actionName = $request->attributes->get(EA::CRUD_ACTION);$crudControllerInstance = $this->controllerFactory->getCrudControllerInstance($crudControllerFqcn, $actionName, $request);try {$adminContext = $this->adminContextFactory->create($request, $dashboardControllerInstance, $crudControllerInstance, $actionName);} catch (BaseException $e) {// if context creation fails (e.g. entity not found), create a context// without the entity so the ExceptionListener can still render the// EasyAdmin error page with the proper layout$entityId = $request->attributes->get(EA::ENTITY_ID) ?? $request->query->get(EA::ENTITY_ID);
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelRequestPrettyUrls
(line 115)
$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 206)
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 56)
} else {$listeners = $this->getListeners($eventName);}if ($listeners) {$this->callListeners($listeners, $eventName, $event);}return $event;}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 126)
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 159)
*/private function handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response{// request$event = new RequestEvent($this, $request, $type);$this->dispatcher->dispatch($event, KernelEvents::REQUEST);if ($event->hasResponse()) {return $this->filterResponse($event->getResponse(), $request, $type);}
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 182)
$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)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 29)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse Shared\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {$APP_ENV = $context['APP_ENV'];$APP_DEBUG = $context['APP_DEBUG'];$APP_ID = $context['APP_ID'];
Logs
No log messages
Stack Traces 3
|
[3/3]
DriverException
|
|---|
Doctrine\DBAL\Exception\DriverException:
An exception occurred while executing a query: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type integer: "batch-delete"
CONTEXT: unnamed portal parameter $1 = '...'
at vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:87
at Doctrine\DBAL\Driver\API\PostgreSQL\ExceptionConverter->convert(object(Exception), object(Query))
(vendor/doctrine/dbal/src/Connection.php:1976)
at Doctrine\DBAL\Connection->handleDriverException(object(Exception), object(Query))
(vendor/doctrine/dbal/src/Connection.php:1918)
at Doctrine\DBAL\Connection->convertExceptionDuringQuery(object(Exception), 'SELECT t0.estimate_material_id AS estimate_material_id_1, t0.created_at AS created_at_2, t0.deleted_at AS deleted_at_3, t0.key AS key_4, t0.quantity_real AS quantity_real_5, t0.quantity AS quantity_6, t0.price AS price_7, t0.amount AS amount_8, t0.estimate_work_id AS estimate_work_id_9, t0.material_id AS material_id_10 FROM estimate_estimates_materials t0 WHERE t0.estimate_material_id = ?', array('batch-delete'), array('integer'))
(vendor/doctrine/dbal/src/Connection.php:1111)
at Doctrine\DBAL\Connection->executeQuery('SELECT t0.estimate_material_id AS estimate_material_id_1, t0.created_at AS created_at_2, t0.deleted_at AS deleted_at_3, t0.key AS key_4, t0.quantity_real AS quantity_real_5, t0.quantity AS quantity_6, t0.price AS price_7, t0.amount AS amount_8, t0.estimate_work_id AS estimate_work_id_9, t0.material_id AS material_id_10 FROM estimate_estimates_materials t0 WHERE t0.estimate_material_id = ?', array('batch-delete'), array('integer'))
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:738)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load(array('id' => 'batch-delete'), null)
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:756)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById(array('id' => 'batch-delete'))
(vendor/doctrine/orm/src/EntityManager.php:366)
at Doctrine\ORM\EntityManager->find('Estimate\\Entity\\EstimateMaterial', array(), null, null)
(vendor/doctrine/orm/src/EntityRepository.php:86)
at Doctrine\ORM\EntityRepository->find('batch-delete')
(vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php:193)
at EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory->getEntityInstance('Estimate\\Entity\\EstimateMaterial', 'batch-delete')
(vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php:152)
at EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory->doCreate('Estimate\\Entity\\EstimateMaterial', 'batch-delete', null)
(vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php:86)
at EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory->create('Estimate\\Entity\\EstimateMaterial', 'batch-delete', null)
(vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php:291)
at EasyCorp\Bundle\EasyAdminBundle\Factory\AdminContextFactory->getEntityDto(object(Request), object(CrudDto))
(vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php:78)
at EasyCorp\Bundle\EasyAdminBundle\Factory\AdminContextFactory->create(object(Request), object(DashboardController), object(EstimateMaterialCrudController), 'detail')
(vendor/easycorp/easyadmin-bundle/src/EventListener/AdminRouterSubscriber.php:135)
at EasyCorp\Bundle\EasyAdminBundle\EventListener\AdminRouterSubscriber->onKernelRequestPrettyUrls(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/EventDispatcher.php:206)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(RequestEvent))
(vendor/symfony/event-dispatcher/EventDispatcher.php:56)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
(vendor/symfony/http-kernel/HttpKernel.php:159)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:182)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:29)
at require_once('/app/vendor/autoload_runtime.php')
(public/index.php:5)
|
|
[2/3]
Exception
|
|---|
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type integer: "batch-delete"
CONTEXT: unnamed portal parameter $1 = '...'
at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:24
at Doctrine\DBAL\Driver\PDO\Exception::new(object(PDOException))
(vendor/doctrine/dbal/src/Driver/PDO/Statement.php:132)
at Doctrine\DBAL\Driver\PDO\Statement->execute(null)
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:69)
at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute(null)
(vendor/doctrine/dbal/src/Logging/Statement.php:98)
at Doctrine\DBAL\Logging\Statement->execute(null)
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:69)
at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute(null)
(vendor/symfony/doctrine-bridge/Middleware/Debug/DBAL3/Statement.php:70)
at Symfony\Bridge\Doctrine\Middleware\Debug\DBAL3\Statement->execute()
(vendor/doctrine/dbal/src/Connection.php:1104)
at Doctrine\DBAL\Connection->executeQuery('SELECT t0.estimate_material_id AS estimate_material_id_1, t0.created_at AS created_at_2, t0.deleted_at AS deleted_at_3, t0.key AS key_4, t0.quantity_real AS quantity_real_5, t0.quantity AS quantity_6, t0.price AS price_7, t0.amount AS amount_8, t0.estimate_work_id AS estimate_work_id_9, t0.material_id AS material_id_10 FROM estimate_estimates_materials t0 WHERE t0.estimate_material_id = ?', array('batch-delete'), array('integer'))
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:738)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load(array('id' => 'batch-delete'), null)
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:756)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById(array('id' => 'batch-delete'))
(vendor/doctrine/orm/src/EntityManager.php:366)
at Doctrine\ORM\EntityManager->find('Estimate\\Entity\\EstimateMaterial', array(), null, null)
(vendor/doctrine/orm/src/EntityRepository.php:86)
at Doctrine\ORM\EntityRepository->find('batch-delete')
(vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php:193)
at EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory->getEntityInstance('Estimate\\Entity\\EstimateMaterial', 'batch-delete')
(vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php:152)
at EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory->doCreate('Estimate\\Entity\\EstimateMaterial', 'batch-delete', null)
(vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php:86)
at EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory->create('Estimate\\Entity\\EstimateMaterial', 'batch-delete', null)
(vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php:291)
at EasyCorp\Bundle\EasyAdminBundle\Factory\AdminContextFactory->getEntityDto(object(Request), object(CrudDto))
(vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php:78)
at EasyCorp\Bundle\EasyAdminBundle\Factory\AdminContextFactory->create(object(Request), object(DashboardController), object(EstimateMaterialCrudController), 'detail')
(vendor/easycorp/easyadmin-bundle/src/EventListener/AdminRouterSubscriber.php:135)
at EasyCorp\Bundle\EasyAdminBundle\EventListener\AdminRouterSubscriber->onKernelRequestPrettyUrls(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/EventDispatcher.php:206)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(RequestEvent))
(vendor/symfony/event-dispatcher/EventDispatcher.php:56)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
(vendor/symfony/http-kernel/HttpKernel.php:159)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:182)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:29)
at require_once('/app/vendor/autoload_runtime.php')
(public/index.php:5)
|
|
[1/3]
PDOException
|
|---|
PDOException:
SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type integer: "batch-delete"
CONTEXT: unnamed portal parameter $1 = '...'
at vendor/doctrine/dbal/src/Driver/PDO/Statement.php:130
at PDOStatement->execute(null)
(vendor/doctrine/dbal/src/Driver/PDO/Statement.php:130)
at Doctrine\DBAL\Driver\PDO\Statement->execute(null)
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:69)
at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute(null)
(vendor/doctrine/dbal/src/Logging/Statement.php:98)
at Doctrine\DBAL\Logging\Statement->execute(null)
(vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:69)
at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute(null)
(vendor/symfony/doctrine-bridge/Middleware/Debug/DBAL3/Statement.php:70)
at Symfony\Bridge\Doctrine\Middleware\Debug\DBAL3\Statement->execute()
(vendor/doctrine/dbal/src/Connection.php:1104)
at Doctrine\DBAL\Connection->executeQuery('SELECT t0.estimate_material_id AS estimate_material_id_1, t0.created_at AS created_at_2, t0.deleted_at AS deleted_at_3, t0.key AS key_4, t0.quantity_real AS quantity_real_5, t0.quantity AS quantity_6, t0.price AS price_7, t0.amount AS amount_8, t0.estimate_work_id AS estimate_work_id_9, t0.material_id AS material_id_10 FROM estimate_estimates_materials t0 WHERE t0.estimate_material_id = ?', array('batch-delete'), array('integer'))
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:738)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->load(array('id' => 'batch-delete'), null)
(vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:756)
at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadById(array('id' => 'batch-delete'))
(vendor/doctrine/orm/src/EntityManager.php:366)
at Doctrine\ORM\EntityManager->find('Estimate\\Entity\\EstimateMaterial', array(), null, null)
(vendor/doctrine/orm/src/EntityRepository.php:86)
at Doctrine\ORM\EntityRepository->find('batch-delete')
(vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php:193)
at EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory->getEntityInstance('Estimate\\Entity\\EstimateMaterial', 'batch-delete')
(vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php:152)
at EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory->doCreate('Estimate\\Entity\\EstimateMaterial', 'batch-delete', null)
(vendor/easycorp/easyadmin-bundle/src/Factory/EntityFactory.php:86)
at EasyCorp\Bundle\EasyAdminBundle\Factory\EntityFactory->create('Estimate\\Entity\\EstimateMaterial', 'batch-delete', null)
(vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php:291)
at EasyCorp\Bundle\EasyAdminBundle\Factory\AdminContextFactory->getEntityDto(object(Request), object(CrudDto))
(vendor/easycorp/easyadmin-bundle/src/Factory/AdminContextFactory.php:78)
at EasyCorp\Bundle\EasyAdminBundle\Factory\AdminContextFactory->create(object(Request), object(DashboardController), object(EstimateMaterialCrudController), 'detail')
(vendor/easycorp/easyadmin-bundle/src/EventListener/AdminRouterSubscriber.php:135)
at EasyCorp\Bundle\EasyAdminBundle\EventListener\AdminRouterSubscriber->onKernelRequestPrettyUrls(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
(vendor/symfony/event-dispatcher/EventDispatcher.php:206)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(RequestEvent))
(vendor/symfony/event-dispatcher/EventDispatcher.php:56)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:126)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
(vendor/symfony/http-kernel/HttpKernel.php:159)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:182)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:29)
at require_once('/app/vendor/autoload_runtime.php')
(public/index.php:5)
|