Exceptions
Exceptions 3
Doctrine\DBAL\Exception\ ForeignKeyConstraintViolationException
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php
->
convertException
(line 169)
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php
::
wrapException
(line 149)
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
::
driverExceptionDuringQuery
(line 1071)
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
->
executeUpdate
(line 668)
$this->addIdentifierCondition($identifier, $columns, $values, $conditions);
return $this->executeUpdate(
'DELETE FROM ' . $tableExpression . ' WHERE ' . implode(' AND ', $conditions),
$values,
is_string(key($types)) ? $this->extractTypeValues($columns, $types) : $types
);
}
/**
* Closes the connection.
in
vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php
->
delete
(line 582)
in
vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php
->
delete
(line 1200)
in
vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php
->
executeDeletions
(line 423)
in
vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php
->
commit
(line 370)
in
var/cache/dev/ContainerDZxMzxI/EntityManager_9a5be93.php
->
flush
(line 125)
public function flush($entity = null)
{
$this->initializer9a5be93 && ($this->initializer9a5be93->__invoke($valueHolder9a5be93, $this, 'flush', array('entity' => $entity), $this->initializer9a5be93) || 1) && $this->valueHolder9a5be93 = $valueHolder9a5be93;
return $this->valueHolder9a5be93->flush($entity);
}
public function find($entityName, $id, $lockMode = null, $lockVersion = null)
{
$this->initializer9a5be93 && ($this->initializer9a5be93->__invoke($valueHolder9a5be93, $this, 'find', array('entityName' => $entityName, 'id' => $id, 'lockMode' => $lockMode, 'lockVersion' => $lockVersion), $this->initializer9a5be93) || 1) && $this->valueHolder9a5be93 = $valueHolder9a5be93;
$this->calendarServiceRepository->deleteByUser($user);
$this->entityManager->remove($user);
} else {
$user->setEnabled(false);
}
$this->entityManager->flush();
if ($userSimplypayConfig) {
$this->simplepayCommonApiClient->blockMerchant(new BlockMerchantRequestDTO(
$userSimplypayConfig->getMerchant()
));
DeleteUser->perform()
in
src/Service/SuperAdmin/Panel/Api/Customer/CustomerDeleteService.php
(line 80)
CustomerDeleteService->perform()
in
src/Controller/SuperAdmin/Api/Customer/DeleteCustomerController.php
(line 43)
in
vendor/symfony/http-kernel/HttpKernel.php
->
__invoke
(line 169)
$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 81)
{
$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 201)
Doctrine\DBAL\Driver\ PDOException
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
->
execute
(line 1062)
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
->
executeUpdate
(line 668)
$this->addIdentifierCondition($identifier, $columns, $values, $conditions);
return $this->executeUpdate(
'DELETE FROM ' . $tableExpression . ' WHERE ' . implode(' AND ', $conditions),
$values,
is_string(key($types)) ? $this->extractTypeValues($columns, $types) : $types
);
}
/**
* Closes the connection.
in
vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php
->
delete
(line 582)
in
vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php
->
delete
(line 1200)
in
vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php
->
executeDeletions
(line 423)
in
vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php
->
commit
(line 370)
in
var/cache/dev/ContainerDZxMzxI/EntityManager_9a5be93.php
->
flush
(line 125)
public function flush($entity = null)
{
$this->initializer9a5be93 && ($this->initializer9a5be93->__invoke($valueHolder9a5be93, $this, 'flush', array('entity' => $entity), $this->initializer9a5be93) || 1) && $this->valueHolder9a5be93 = $valueHolder9a5be93;
return $this->valueHolder9a5be93->flush($entity);
}
public function find($entityName, $id, $lockMode = null, $lockVersion = null)
{
$this->initializer9a5be93 && ($this->initializer9a5be93->__invoke($valueHolder9a5be93, $this, 'find', array('entityName' => $entityName, 'id' => $id, 'lockMode' => $lockMode, 'lockVersion' => $lockVersion), $this->initializer9a5be93) || 1) && $this->valueHolder9a5be93 = $valueHolder9a5be93;
$this->calendarServiceRepository->deleteByUser($user);
$this->entityManager->remove($user);
} else {
$user->setEnabled(false);
}
$this->entityManager->flush();
if ($userSimplypayConfig) {
$this->simplepayCommonApiClient->blockMerchant(new BlockMerchantRequestDTO(
$userSimplypayConfig->getMerchant()
));
DeleteUser->perform()
in
src/Service/SuperAdmin/Panel/Api/Customer/CustomerDeleteService.php
(line 80)
CustomerDeleteService->perform()
in
src/Controller/SuperAdmin/Api/Customer/DeleteCustomerController.php
(line 43)
in
vendor/symfony/http-kernel/HttpKernel.php
->
__invoke
(line 169)
$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 81)
{
$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 201)
PDOException
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php
->
execute
(line 127)
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
->
execute
(line 1062)
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
->
executeUpdate
(line 668)
$this->addIdentifierCondition($identifier, $columns, $values, $conditions);
return $this->executeUpdate(
'DELETE FROM ' . $tableExpression . ' WHERE ' . implode(' AND ', $conditions),
$values,
is_string(key($types)) ? $this->extractTypeValues($columns, $types) : $types
);
}
/**
* Closes the connection.
in
vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php
->
delete
(line 582)
in
vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php
->
delete
(line 1200)
in
vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php
->
executeDeletions
(line 423)
in
vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php
->
commit
(line 370)
in
var/cache/dev/ContainerDZxMzxI/EntityManager_9a5be93.php
->
flush
(line 125)
public function flush($entity = null)
{
$this->initializer9a5be93 && ($this->initializer9a5be93->__invoke($valueHolder9a5be93, $this, 'flush', array('entity' => $entity), $this->initializer9a5be93) || 1) && $this->valueHolder9a5be93 = $valueHolder9a5be93;
return $this->valueHolder9a5be93->flush($entity);
}
public function find($entityName, $id, $lockMode = null, $lockVersion = null)
{
$this->initializer9a5be93 && ($this->initializer9a5be93->__invoke($valueHolder9a5be93, $this, 'find', array('entityName' => $entityName, 'id' => $id, 'lockMode' => $lockMode, 'lockVersion' => $lockVersion), $this->initializer9a5be93) || 1) && $this->valueHolder9a5be93 = $valueHolder9a5be93;
$this->calendarServiceRepository->deleteByUser($user);
$this->entityManager->remove($user);
} else {
$user->setEnabled(false);
}
$this->entityManager->flush();
if ($userSimplypayConfig) {
$this->simplepayCommonApiClient->blockMerchant(new BlockMerchantRequestDTO(
$userSimplypayConfig->getMerchant()
));
DeleteUser->perform()
in
src/Service/SuperAdmin/Panel/Api/Customer/CustomerDeleteService.php
(line 80)
CustomerDeleteService->perform()
in
src/Controller/SuperAdmin/Api/Customer/DeleteCustomerController.php
(line 43)
in
vendor/symfony/http-kernel/HttpKernel.php
->
__invoke
(line 169)
$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 81)
{
$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 201)
Logs
Level | Channel | Message |
---|---|---|
INFO 14:18:47 | php |
User Deprecated: YAML mapping driver is deprecated and will be removed in Doctrine ORM 3.0, please migrate to annotation or XML driver. { "exception": {} } |
INFO 14:18:47 | php |
User Deprecated: Creating Doctrine\ORM\Mapping\UnderscoreNamingStrategy without making it number aware is deprecated and will be removed in Doctrine ORM 3.0. { "exception": {} } |
INFO 14:18:47 | php |
User Deprecated: Using Groups is deprecated since version 2.2 and will be removed in 3.0. { "exception": {} } |
INFO 14:18:47 | php |
User Deprecated: The "Harmonizely\Model\UserInterface" interface extends "FOS\UserBundle\Model\UserInterface" that is deprecated since Symfony 4.1. Remove in Nov 2023 (End of support for security fixes SF 4.4). { "exception": {} } |
INFO 14:18:47 | request |
Matched route "_profiler". { "route": "_profiler", "route_parameters": { "_route": "_profiler", "_controller": "web_profiler.controller.profiler::panelAction", "token": "latest" }, "request_uri": "https://simplymeet.super-admin.test.d.simplybook.ovh/_profiler/latest?ip=3.12.147.12", "method": "GET" } |
INFO 14:18:47 | php |
User Deprecated: The "fos_rest.serializer.exception_normalizer.symfony" service is deprecated since FOSRestBundle 2.8. { "exception": {} } |
INFO 14:18:47 | php |
User Deprecated: The FOS\RestBundle\Serializer\Normalizer\ExceptionNormalizer class is deprecated since FOSRestBundle 2.8. { "exception": {} } |
INFO 14:18:47 | request |
Matched route "_profiler_exception_css". { "route": "_profiler_exception_css", "route_parameters": { "_route": "_profiler_exception_css", "_controller": "web_profiler.controller.exception_panel::stylesheet", "token": "31c462" }, "request_uri": "https://simplymeet.super-admin.test.d.simplybook.ovh/_profiler/31c462/exception.css", "method": "GET" } |
INFO 14:18:47 | request |
Matched route "_profiler_search_bar". { "route": "_profiler_search_bar", "route_parameters": { "_route": "_profiler_search_bar", "_controller": "web_profiler.controller.profiler::searchBarAction" }, "request_uri": "https://simplymeet.super-admin.test.d.simplybook.ovh/_profiler/search_bar?ip=3.12.147.12", "method": "GET" } |
INFO 14:18:47 | request |
Matched route "_profiler_exception". { "route": "_profiler_exception", "route_parameters": { "_route": "_profiler_exception", "_controller": "web_profiler.controller.exception_panel::body", "token": "31c462" }, "request_uri": "https://simplymeet.super-admin.test.d.simplybook.ovh/_profiler/31c462/exception", "method": "GET" } |
Stack Traces 3
[3/3] ForeignKeyConstraintViolationException |
---|
Doctrine\DBAL\Exception\ForeignKeyConstraintViolationException: An exception occurred while executing 'DELETE FROM hly_user WHERE id = ?' with params [1439]: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`dimka_harmonizely`.`hly_event_type_request_location_type`, CONSTRAINT `FK_905E04D3401B253C` FOREIGN KEY (`event_type_id`) REFERENCES `hly_event_type` (`id`)) at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:49 at Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException() (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:169) at Doctrine\DBAL\DBALException::wrapException() (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:149) at Doctrine\DBAL\DBALException::driverExceptionDuringQuery() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1071) at Doctrine\DBAL\Connection->executeUpdate() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:668) at Doctrine\DBAL\Connection->delete() (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:582) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->delete() (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:1200) at Doctrine\ORM\UnitOfWork->executeDeletions() (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:423) at Doctrine\ORM\UnitOfWork->commit() (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:370) at Doctrine\ORM\EntityManager->flush() (var/cache/dev/ContainerDZxMzxI/EntityManager_9a5be93.php:125) at EntityManager_9a5be93->flush() (src/User/DeleteUser.php:96) at Harmonizely\User\DeleteUser->__invoke() (src/User/DeleteUser.php:121) at Harmonizely\User\DeleteUser->perform() (src/Service/SuperAdmin/Panel/Api/Customer/CustomerDeleteService.php:80) at Harmonizely\Service\SuperAdmin\Panel\Api\Customer\CustomerDeleteService->perform() (src/Controller/SuperAdmin/Api/Customer/DeleteCustomerController.php:43) at Harmonizely\Controller\SuperAdmin\Api\Customer\DeleteCustomerController->__invoke() (vendor/symfony/http-kernel/HttpKernel.php:169) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:81) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:31) |
[2/3] PDOException |
---|
Doctrine\DBAL\Driver\PDOException: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`dimka_harmonizely`.`hly_event_type_request_location_type`, CONSTRAINT `FK_905E04D3401B253C` FOREIGN KEY (`event_type_id`) REFERENCES `hly_event_type` (`id`)) at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:129 at Doctrine\DBAL\Driver\PDOStatement->execute() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1062) at Doctrine\DBAL\Connection->executeUpdate() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:668) at Doctrine\DBAL\Connection->delete() (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:582) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->delete() (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:1200) at Doctrine\ORM\UnitOfWork->executeDeletions() (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:423) at Doctrine\ORM\UnitOfWork->commit() (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:370) at Doctrine\ORM\EntityManager->flush() (var/cache/dev/ContainerDZxMzxI/EntityManager_9a5be93.php:125) at EntityManager_9a5be93->flush() (src/User/DeleteUser.php:96) at Harmonizely\User\DeleteUser->__invoke() (src/User/DeleteUser.php:121) at Harmonizely\User\DeleteUser->perform() (src/Service/SuperAdmin/Panel/Api/Customer/CustomerDeleteService.php:80) at Harmonizely\Service\SuperAdmin\Panel\Api\Customer\CustomerDeleteService->perform() (src/Controller/SuperAdmin/Api/Customer/DeleteCustomerController.php:43) at Harmonizely\Controller\SuperAdmin\Api\Customer\DeleteCustomerController->__invoke() (vendor/symfony/http-kernel/HttpKernel.php:169) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:81) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:31) |
[1/3] PDOException |
---|
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`dimka_harmonizely`.`hly_event_type_request_location_type`, CONSTRAINT `FK_905E04D3401B253C` FOREIGN KEY (`event_type_id`) REFERENCES `hly_event_type` (`id`)) at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:127 at PDOStatement->execute() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:127) at Doctrine\DBAL\Driver\PDOStatement->execute() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1062) at Doctrine\DBAL\Connection->executeUpdate() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:668) at Doctrine\DBAL\Connection->delete() (vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:582) at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->delete() (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:1200) at Doctrine\ORM\UnitOfWork->executeDeletions() (vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:423) at Doctrine\ORM\UnitOfWork->commit() (vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:370) at Doctrine\ORM\EntityManager->flush() (var/cache/dev/ContainerDZxMzxI/EntityManager_9a5be93.php:125) at EntityManager_9a5be93->flush() (src/User/DeleteUser.php:96) at Harmonizely\User\DeleteUser->__invoke() (src/User/DeleteUser.php:121) at Harmonizely\User\DeleteUser->perform() (src/Service/SuperAdmin/Panel/Api/Customer/CustomerDeleteService.php:80) at Harmonizely\Service\SuperAdmin\Panel\Api\Customer\CustomerDeleteService->perform() (src/Controller/SuperAdmin/Api/Customer/DeleteCustomerController.php:43) at Harmonizely\Controller\SuperAdmin\Api\Customer\DeleteCustomerController->__invoke() (vendor/symfony/http-kernel/HttpKernel.php:169) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:81) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:31) |