public static function create($text, Commenter $c, Post $p) { $comment = new Comment(); $comment->setText($text); $comment->setCommenter($c); $comment->setPost($p); return $comment; }
public function setPost(\Domain\Entities\Post $post) { $this->__load(); return parent::setPost($post); }