Пример #1
0
 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();
 }
Пример #2
0
 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();
 }
Пример #3
0
 protected function modify(Comment $comment)
 {
     $q = $this->dao->prepare('UPDATE t_for_commentc SET FCC_fk_FMC = :auteurId, FCC_content = :contenu, FCC_dateupdate = NOW() WHERE FCC_id = :id');
     $q->bindValue(':auteurId', $comment->auteurId(), \PDO::PARAM_INT);
     $q->bindValue(':contenu', $comment->contenu(), \PDO::PARAM_STR);
     $q->bindValue(':id', $comment->id(), \PDO::PARAM_INT);
     $q->execute();
 }