added error handling
This commit is contained in:
parent
ec022d09e4
commit
3bf0c2b44f
|
@ -36,6 +36,7 @@ class DatabaseConnection
|
||||||
username: $dbUser,
|
username: $dbUser,
|
||||||
password: $dbPassword
|
password: $dbPassword
|
||||||
);
|
);
|
||||||
|
$this->dbConnection->setAttribute(attribute: PDO::ATTR_ERRMODE, value: PDO::ERRMODE_EXCEPTION);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getConnection(): PDO
|
public function getConnection(): PDO
|
||||||
|
|
Loading…
Reference in New Issue