public function getAsComment() { $comment = new Comment(); $comment->setText($this->getText()); $comment->setDate($this->getDate()); $comment->setCommenter($this->getCommenter()); return $comment; }
public function setDate(\DateTime $date) { $this->__load(); return parent::setDate($date); }