protected function modify(WebsiteOpinion $websiteOpinion) { $q = $this->dao->prepare('UPDATE ' . $this->table() . ' SET USERNAME = :username, COMMENT = :comment, IS_PUBLISHED = :isPublished WHERE ID = :id'); $q->bindValue(':username', $websiteOpinion->getUsername()); $q->bindValue(':comment', $websiteOpinion->getComment()); $q->bindValue(':isPublished', $websiteOpinion->getIsPublished()); $q->bindValue(':id', $websiteOpinion->id()); $q->execute(); }