public function addMicropetitionRootComment(Micropetition $micropetition) { $comment = new MicropetitionComment(); $comment->setPetition($micropetition); $comment->setCommentBody($micropetition->getPetitionBody()); $comment->setUser($micropetition->getUser()); return $this->saveNewComment($comment); }
public function setUser(\Civix\CoreBundle\Entity\User $user = NULL) { $this->__load(); return parent::setUser($user); }