diff --git a/src/Service/DatabaseConnection.php b/src/Service/DatabaseConnection.php index 7077b4b..6d1a286 100644 --- a/src/Service/DatabaseConnection.php +++ b/src/Service/DatabaseConnection.php @@ -36,6 +36,7 @@ class DatabaseConnection username: $dbUser, password: $dbPassword ); + $this->dbConnection->setAttribute(attribute: PDO::ATTR_ERRMODE, value: PDO::ERRMODE_EXCEPTION); } public function getConnection(): PDO