public function updateRencontre(Rencontre $rencontre) { $q = $this->_db->prepare('UPDATE rencontre SET' . ' score_A = :score_A,' . ' score_B = :score_B,' . ' vainqueur_rencontre = :vainqueur_rencontre,' . ' date_rencontre = :date_rencontre,' . ' observation = :observation' . ' WHERE id_rencontre = :id_rencontre'); $q->bindValue(':score_A', $rencontre->getScoreA(), PDO::PARAM_INT); $q->bindValue(':score_B', $rencontre->getScoreB(), PDO::PARAM_INT); $q->bindValue(':vainqueur_rencontre', $rencontre->getVainqueurRencontre(), PDO::PARAM_INT); $q->bindValue(':date_rencontre', $rencontre->getDateRencontre(), PDO::PARAM_INT); $q->bindValue(':observation', $rencontre->getObservation(), PDO::PARAM_INT); $q->bindValue(':id_rencontre', $rencontre->getIdRencontre(), PDO::PARAM_INT); $q->execute(); }