diff --git a/project/src/model/gateways/ScientifiqueGateway.php b/project/src/model/gateways/ScientifiqueGateway.php index 0893f84..5590529 100755 --- a/project/src/model/gateways/ScientifiqueGateway.php +++ b/project/src/model/gateways/ScientifiqueGateway.php @@ -57,8 +57,15 @@ class ScientifiqueGateway ":id"=>[$sci->getId(),$this->con::PARAM_INT] ]); } + public function deleteScientifique(int $id): bool{ + return $this->con->executeQuery( + "DELETE FROM Scientifique WHERE id=:id;" + ,[ + ":id"=>[$id,$this->con::PARAM_INT] + ]); + } - public function getScientifique(int $id): b { + public function getScientifique(int $id) { $this->con->executeQuery( "SELECT id, nom, prenom, photo, dateNaissance, descriptif, ratioTrouvee, idThematique, idDifficulte, idSexe FROM Scientifique WHERE id=:id;" ,[