protected function modify(Comment $comment) { $q = $this->dao->prepare('UPDATE comments SET auteur = :auteur, contenu = :contenu WHERE id = :id'); $q->bindValue(':auteur', $comment->auteur()); $q->bindValue(':contenu', $comment->contenu()); $q->bindValue(':id', $comment->id(), \PDO::PARAM_INT); $q->execute(); }
protected function modify(Comment $comment) { $q = $this->dao->prepare('UPDATE T_NEW_commentc SET NCC_fk_NMC = :auteur, NCC_content = :contenu WHERE NCC_id = :id'); $q->bindValue(':auteur', $comment->auteur()); $q->bindValue(':contenu', $comment->contenu()); $q->bindValue(':id', $comment->id(), \PDO::PARAM_INT); $q->execute(); }