Пример #1
0
 /**
  * Decrementa un like en el Comment
  * @param Like $like
  * @throws PDOException si ocurre algun error en la BD
  */
 public function removeLikeComment(LikeComment $like)
 {
     $stmt = $this->db->prepare("DELETE FROM likescomments WHERE authorLike=? and likeComment=?");
     $stmt->execute(array($like->getAuthor(), $like->getComment()->getId()));
 }