protected function getNewComment() { $comment = new rtComment(); if ($this->getUser()->isAuthenticated()) { $this->getUser()->getGuardUser(); $comment->setAuthorName($this->getUser()->getGuardUser()->getFirstName() . ' ' . $this->getUser()->getGuardUser()->getLastName()); $comment->setAuthorEmail($this->getUser()->getGuardUser()->getEmailAddress()); } return $comment; }