Doctrine\DBAL\Exception\ForeignKeyConstraintViolationException: An exception occurred while executing 'DELETE FROM users WHERE id = ?' with params [41]: #150
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`stiftun8_dimetest`.`WorkingPeriods`, CONSTRAINT `FK_57C1BB888C03F15C` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`))
File "src/Dime/TimetrackerBundle/Handler/AbstractHandler.php", line 146, in deleteEntity
$this->om->flush();
File "src/Dime/TimetrackerBundle/Handler/GenericHandler.php", line 125, in delete
$this->deleteEntity($entity);
File "src/Dime/EmployeeBundle/Controller/EmployeeController.php", line 192, in deleteEmployeeAction
$this->container->get($this->handlerSerivce)->delete($this->getOr404($id, $this->handlerSerivce));
File "app/bootstrap.php.cache", line 3253, in handleRaw
$response = call_user_func_array($controller, $arguments);
File "app/bootstrap.php.cache", line 3212, in handle
return $this->handleRaw($request, $type);
...
(18 additional frame(s) were not displayed)
Doctrine\DBAL\Driver\PDOException: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`stiftun8_dimetest`.`WorkingPeriods`, CONSTRAINT `FK_57C1BB888C03F15C` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`))
File "src/Dime/TimetrackerBundle/Handler/AbstractHandler.php", line 146, in deleteEntity
$this->om->flush();
File "src/Dime/TimetrackerBundle/Handler/GenericHandler.php", line 125, in delete
$this->deleteEntity($entity);
File "src/Dime/EmployeeBundle/Controller/EmployeeController.php", line 192, in deleteEmployeeAction
$this->container->get($this->handlerSerivce)->delete($this->getOr404($id, $this->handlerSerivce));
File "app/bootstrap.php.cache", line 3253, in handleRaw
$response = call_user_func_array($controller, $arguments);
File "app/bootstrap.php.cache", line 3212, in handle
return $this->handleRaw($request, $type);
...
(17 additional frame(s) were not displayed)
Doctrine\DBAL\Exception\ForeignKeyConstraintViolationException: An exception occurred while executing 'DELETE FROM users WHERE id = ?' with params [41]:
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`stiftun8_dimetest`.`WorkingPeriods`, CONSTRAINT `FK_57C1BB888C03F15C` FOREIGN KEY (`employee_id`) REFERENCES `users` (`id`))
File "src/Dime/TimetrackerBundle/Handler/AbstractHandler.php", line 146, in deleteEntity
$this->om->flush();
File "src/Dime/TimetrackerBundle/Handler/GenericHandler.php", line 125, in delete
$this->deleteEntity($entity);
File "src/Dime/EmployeeBundle/Controller/EmployeeController.php", line 192, in deleteEmployeeAction
$this->container->get($this->handlerSerivce)->delete($this->getOr404($id, $this->handlerSerivce));
File "app/bootstrap.php.cache", line 3253, in handleRaw
$response = call_user_func_array($controller, $arguments);
File "app/bootstrap.php.cache", line 3212, in handle
return $this->handleRaw($request, $type);
...
(19 additional frame(s) were not displayed)
https://sentry.io/swo/dime/issues/625130336/