https://simplymeet.super-admin.test.d.simplybook.ovh/panel/api/customers/delete/1439

Exceptions

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`))

Exceptions 3

Doctrine\DBAL\Exception\ ForeignKeyConstraintViolationException

  1.             case '1216':
  2.             case '1217':
  3.             case '1451':
  4.             case '1452':
  5.             case '1701':
  6.                 return new Exception\ForeignKeyConstraintViolationException($message$exception);
  7.             case '1062':
  8.             case '1557':
  9.             case '1569':
  10.             case '1586':
  1.     {
  2.         if ($driverEx instanceof DriverException) {
  3.             return $driverEx;
  4.         }
  5.         if ($driver instanceof ExceptionConverterDriver && $driverEx instanceof DriverExceptionInterface) {
  6.             return $driver->convertException($msg$driverEx);
  7.         }
  8.         return new self($msg0$driverEx);
  9.     }
  1.         if ($params) {
  2.             $msg .= ' with params ' self::formatParameters($params);
  3.         }
  4.         $msg .= ":\n\n" $driverEx->getMessage();
  5.         return static::wrapException($driver$driverEx$msg);
  6.     }
  7.     /**
  8.      * @return self
  9.      */
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php :: driverExceptionDuringQuery (line 1071)
  1.                 $result $stmt->rowCount();
  2.             } else {
  3.                 $result $connection->exec($query);
  4.             }
  5.         } catch (Throwable $ex) {
  6.             throw DBALException::driverExceptionDuringQuery($this->_driver$ex$query$this->resolveParams($params$types));
  7.         }
  8.         if ($logger) {
  9.             $logger->stopQuery();
  10.         }
  1.         $this->addIdentifierCondition($identifier$columns$values$conditions);
  2.         return $this->executeUpdate(
  3.             'DELETE FROM ' $tableExpression ' WHERE ' implode(' AND '$conditions),
  4.             $values,
  5.             is_string(key($types)) ? $this->extractTypeValues($columns$types) : $types
  6.         );
  7.     }
  8.     /**
  9.      * Closes the connection.
  1.         $id         array_combine($idColumns$identifier);
  2.         $types      $this->getClassIdentifiersTypes($class);
  3.         $this->deleteJoinTableRecords($identifier);
  4.         return (bool) $this->conn->delete($tableName$id$types);
  5.     }
  6.     /**
  7.      * Prepares the changeset of an entity for database insertion (UPDATE).
  8.      *
  1.         foreach ($this->entityDeletions as $oid => $entity) {
  2.             if ($this->em->getClassMetadata(get_class($entity))->name !== $className) {
  3.                 continue;
  4.             }
  5.             $persister->delete($entity);
  6.             unset(
  7.                 $this->entityDeletions[$oid],
  8.                 $this->entityIdentifiers[$oid],
  9.                 $this->originalEntityData[$oid],
  1.             }
  2.             // Entity deletions come last and need to be in reverse commit order
  3.             if ($this->entityDeletions) {
  4.                 for ($count count($commitOrder), $i $count 1$i >= && $this->entityDeletions; --$i) {
  5.                     $this->executeDeletions($commitOrder[$i]);
  6.                 }
  7.             }
  8.             $conn->commit();
  9.         } catch (Throwable $e) {
  1.             );
  2.         }
  3.         $this->errorIfClosed();
  4.         $this->unitOfWork->commit($entity);
  5.     }
  6.     /**
  7.      * Finds an Entity by its identifier.
  8.      *
  1.     public function flush($entity null)
  2.     {
  3.         $this->initializer9a5be93 && ($this->initializer9a5be93->__invoke($valueHolder9a5be93$this'flush', array('entity' => $entity), $this->initializer9a5be93) || 1) && $this->valueHolder9a5be93 $valueHolder9a5be93;
  4.         return $this->valueHolder9a5be93->flush($entity);
  5.     }
  6.     public function find($entityName$id$lockMode null$lockVersion null)
  7.     {
  8.         $this->initializer9a5be93 && ($this->initializer9a5be93->__invoke($valueHolder9a5be93$this'find', array('entityName' => $entityName'id' => $id'lockMode' => $lockMode'lockVersion' => $lockVersion), $this->initializer9a5be93) || 1) && $this->valueHolder9a5be93 $valueHolder9a5be93;
EntityManager_9a5be93->flush() in src/User/DeleteUser.php (line 96)
  1.             $this->calendarServiceRepository->deleteByUser($user);
  2.             $this->entityManager->remove($user);
  3.         } else {
  4.             $user->setEnabled(false);
  5.         }
  6.         $this->entityManager->flush();
  7.         if ($userSimplypayConfig) {
  8.             $this->simplepayCommonApiClient->blockMerchant(new BlockMerchantRequestDTO(
  9.                 $userSimplypayConfig->getMerchant()
  10.             ));
DeleteUser->__invoke() in src/User/DeleteUser.php (line 121)
  1.     public function perform(
  2.         UserInterface $user,
  3.         DeleteUserRequest $deleteUserRequest
  4.     ): void
  5.     {
  6.         $this($user$deleteUserRequest);
  7.     }
  8. }
  1.         $request = new DeleteUserRequest();
  2.         $request->setDelete(true);
  3.         $request->setReason('support_delete_user');
  4.         $this->deleteUser->perform($user$request);
  5.         $this->eventDispatcher->dispatch(new UserActionEvent(
  6.             UserActionsActionType::TYPE_DELETE,
  7.             UserActionsObjectType::TYPE_CUSTOMER,
  8.             $user->getId()
CustomerDeleteService->perform() in src/Controller/SuperAdmin/Api/Customer/DeleteCustomerController.php (line 43)
  1.      * @param int $id
  2.      * @return Response
  3.      */
  4.     public function __invoke(int $id): Response
  5.     {
  6.         $this->customerDeleteService->perform($id);
  7.         return $this->responseBuilder->buildEmptyResponse();
  8.     }
  9. }
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in public/index.php (line 31)
  1.     Request::setTrustedHosts(explode(','$trustedHosts));
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

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`))

  1.     public function execute($params null)
  2.     {
  3.         try {
  4.             return parent::execute($params);
  5.         } catch (\PDOException $exception) {
  6.             throw new PDOException($exception);
  7.         }
  8.     }
  9.     /**
  10.      * {@inheritdoc}
  1.                 $stmt $connection->prepare($query);
  2.                 if ($types) {
  3.                     $this->_bindTypedValues($stmt$params$types);
  4.                     $stmt->execute();
  5.                 } else {
  6.                     $stmt->execute($params);
  7.                 }
  8.                 $result $stmt->rowCount();
  9.             } else {
  1.         $this->addIdentifierCondition($identifier$columns$values$conditions);
  2.         return $this->executeUpdate(
  3.             'DELETE FROM ' $tableExpression ' WHERE ' implode(' AND '$conditions),
  4.             $values,
  5.             is_string(key($types)) ? $this->extractTypeValues($columns$types) : $types
  6.         );
  7.     }
  8.     /**
  9.      * Closes the connection.
  1.         $id         array_combine($idColumns$identifier);
  2.         $types      $this->getClassIdentifiersTypes($class);
  3.         $this->deleteJoinTableRecords($identifier);
  4.         return (bool) $this->conn->delete($tableName$id$types);
  5.     }
  6.     /**
  7.      * Prepares the changeset of an entity for database insertion (UPDATE).
  8.      *
  1.         foreach ($this->entityDeletions as $oid => $entity) {
  2.             if ($this->em->getClassMetadata(get_class($entity))->name !== $className) {
  3.                 continue;
  4.             }
  5.             $persister->delete($entity);
  6.             unset(
  7.                 $this->entityDeletions[$oid],
  8.                 $this->entityIdentifiers[$oid],
  9.                 $this->originalEntityData[$oid],
  1.             }
  2.             // Entity deletions come last and need to be in reverse commit order
  3.             if ($this->entityDeletions) {
  4.                 for ($count count($commitOrder), $i $count 1$i >= && $this->entityDeletions; --$i) {
  5.                     $this->executeDeletions($commitOrder[$i]);
  6.                 }
  7.             }
  8.             $conn->commit();
  9.         } catch (Throwable $e) {
  1.             );
  2.         }
  3.         $this->errorIfClosed();
  4.         $this->unitOfWork->commit($entity);
  5.     }
  6.     /**
  7.      * Finds an Entity by its identifier.
  8.      *
  1.     public function flush($entity null)
  2.     {
  3.         $this->initializer9a5be93 && ($this->initializer9a5be93->__invoke($valueHolder9a5be93$this'flush', array('entity' => $entity), $this->initializer9a5be93) || 1) && $this->valueHolder9a5be93 $valueHolder9a5be93;
  4.         return $this->valueHolder9a5be93->flush($entity);
  5.     }
  6.     public function find($entityName$id$lockMode null$lockVersion null)
  7.     {
  8.         $this->initializer9a5be93 && ($this->initializer9a5be93->__invoke($valueHolder9a5be93$this'find', array('entityName' => $entityName'id' => $id'lockMode' => $lockMode'lockVersion' => $lockVersion), $this->initializer9a5be93) || 1) && $this->valueHolder9a5be93 $valueHolder9a5be93;
EntityManager_9a5be93->flush() in src/User/DeleteUser.php (line 96)
  1.             $this->calendarServiceRepository->deleteByUser($user);
  2.             $this->entityManager->remove($user);
  3.         } else {
  4.             $user->setEnabled(false);
  5.         }
  6.         $this->entityManager->flush();
  7.         if ($userSimplypayConfig) {
  8.             $this->simplepayCommonApiClient->blockMerchant(new BlockMerchantRequestDTO(
  9.                 $userSimplypayConfig->getMerchant()
  10.             ));
DeleteUser->__invoke() in src/User/DeleteUser.php (line 121)
  1.     public function perform(
  2.         UserInterface $user,
  3.         DeleteUserRequest $deleteUserRequest
  4.     ): void
  5.     {
  6.         $this($user$deleteUserRequest);
  7.     }
  8. }
  1.         $request = new DeleteUserRequest();
  2.         $request->setDelete(true);
  3.         $request->setReason('support_delete_user');
  4.         $this->deleteUser->perform($user$request);
  5.         $this->eventDispatcher->dispatch(new UserActionEvent(
  6.             UserActionsActionType::TYPE_DELETE,
  7.             UserActionsObjectType::TYPE_CUSTOMER,
  8.             $user->getId()
CustomerDeleteService->perform() in src/Controller/SuperAdmin/Api/Customer/DeleteCustomerController.php (line 43)
  1.      * @param int $id
  2.      * @return Response
  3.      */
  4.     public function __invoke(int $id): Response
  5.     {
  6.         $this->customerDeleteService->perform($id);
  7.         return $this->responseBuilder->buildEmptyResponse();
  8.     }
  9. }
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in public/index.php (line 31)
  1.     Request::setTrustedHosts(explode(','$trustedHosts));
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

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`))

  1.      * {@inheritdoc}
  2.      */
  3.     public function execute($params null)
  4.     {
  5.         try {
  6.             return parent::execute($params);
  7.         } catch (\PDOException $exception) {
  8.             throw new PDOException($exception);
  9.         }
  10.     }
  1.      * {@inheritdoc}
  2.      */
  3.     public function execute($params null)
  4.     {
  5.         try {
  6.             return parent::execute($params);
  7.         } catch (\PDOException $exception) {
  8.             throw new PDOException($exception);
  9.         }
  10.     }
  1.                 $stmt $connection->prepare($query);
  2.                 if ($types) {
  3.                     $this->_bindTypedValues($stmt$params$types);
  4.                     $stmt->execute();
  5.                 } else {
  6.                     $stmt->execute($params);
  7.                 }
  8.                 $result $stmt->rowCount();
  9.             } else {
  1.         $this->addIdentifierCondition($identifier$columns$values$conditions);
  2.         return $this->executeUpdate(
  3.             'DELETE FROM ' $tableExpression ' WHERE ' implode(' AND '$conditions),
  4.             $values,
  5.             is_string(key($types)) ? $this->extractTypeValues($columns$types) : $types
  6.         );
  7.     }
  8.     /**
  9.      * Closes the connection.
  1.         $id         array_combine($idColumns$identifier);
  2.         $types      $this->getClassIdentifiersTypes($class);
  3.         $this->deleteJoinTableRecords($identifier);
  4.         return (bool) $this->conn->delete($tableName$id$types);
  5.     }
  6.     /**
  7.      * Prepares the changeset of an entity for database insertion (UPDATE).
  8.      *
  1.         foreach ($this->entityDeletions as $oid => $entity) {
  2.             if ($this->em->getClassMetadata(get_class($entity))->name !== $className) {
  3.                 continue;
  4.             }
  5.             $persister->delete($entity);
  6.             unset(
  7.                 $this->entityDeletions[$oid],
  8.                 $this->entityIdentifiers[$oid],
  9.                 $this->originalEntityData[$oid],
  1.             }
  2.             // Entity deletions come last and need to be in reverse commit order
  3.             if ($this->entityDeletions) {
  4.                 for ($count count($commitOrder), $i $count 1$i >= && $this->entityDeletions; --$i) {
  5.                     $this->executeDeletions($commitOrder[$i]);
  6.                 }
  7.             }
  8.             $conn->commit();
  9.         } catch (Throwable $e) {
  1.             );
  2.         }
  3.         $this->errorIfClosed();
  4.         $this->unitOfWork->commit($entity);
  5.     }
  6.     /**
  7.      * Finds an Entity by its identifier.
  8.      *
  1.     public function flush($entity null)
  2.     {
  3.         $this->initializer9a5be93 && ($this->initializer9a5be93->__invoke($valueHolder9a5be93$this'flush', array('entity' => $entity), $this->initializer9a5be93) || 1) && $this->valueHolder9a5be93 $valueHolder9a5be93;
  4.         return $this->valueHolder9a5be93->flush($entity);
  5.     }
  6.     public function find($entityName$id$lockMode null$lockVersion null)
  7.     {
  8.         $this->initializer9a5be93 && ($this->initializer9a5be93->__invoke($valueHolder9a5be93$this'find', array('entityName' => $entityName'id' => $id'lockMode' => $lockMode'lockVersion' => $lockVersion), $this->initializer9a5be93) || 1) && $this->valueHolder9a5be93 $valueHolder9a5be93;
EntityManager_9a5be93->flush() in src/User/DeleteUser.php (line 96)
  1.             $this->calendarServiceRepository->deleteByUser($user);
  2.             $this->entityManager->remove($user);
  3.         } else {
  4.             $user->setEnabled(false);
  5.         }
  6.         $this->entityManager->flush();
  7.         if ($userSimplypayConfig) {
  8.             $this->simplepayCommonApiClient->blockMerchant(new BlockMerchantRequestDTO(
  9.                 $userSimplypayConfig->getMerchant()
  10.             ));
DeleteUser->__invoke() in src/User/DeleteUser.php (line 121)
  1.     public function perform(
  2.         UserInterface $user,
  3.         DeleteUserRequest $deleteUserRequest
  4.     ): void
  5.     {
  6.         $this($user$deleteUserRequest);
  7.     }
  8. }
  1.         $request = new DeleteUserRequest();
  2.         $request->setDelete(true);
  3.         $request->setReason('support_delete_user');
  4.         $this->deleteUser->perform($user$request);
  5.         $this->eventDispatcher->dispatch(new UserActionEvent(
  6.             UserActionsActionType::TYPE_DELETE,
  7.             UserActionsObjectType::TYPE_CUSTOMER,
  8.             $user->getId()
CustomerDeleteService->perform() in src/Controller/SuperAdmin/Api/Customer/DeleteCustomerController.php (line 43)
  1.      * @param int $id
  2.      * @return Response
  3.      */
  4.     public function __invoke(int $id): Response
  5.     {
  6.         $this->customerDeleteService->perform($id);
  7.         return $this->responseBuilder->buildEmptyResponse();
  8.     }
  9. }
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in public/index.php (line 31)
  1.     Request::setTrustedHosts(explode(','$trustedHosts));
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

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)