Example #1
0
 /**
  * Decrementa un like en el post
  * @param Like $like
  * @throws PDOException si ocurre algun error en la BD
  */
 public function removeLikePost(Like $like)
 {
     $stmt = $this->db->prepare("DELETE FROM likes WHERE authorLike=? and likePost=?");
     $stmt->execute(array($like->getAuthor(), $like->getPost()->getIdPost()));
 }