Programming Language PHP

Namespace Oro\Bundle\CaseBundle\Entity

Class CaseComment

Total Examples 2

2 code examples of PHP Oro\Bundle\CaseBundle\Entity\CaseComment extracted from open source projects

Was this example useful?
0
                                                    public function addComment(CaseComment $comment): self
    {
        $this->comments->add($comment);
        $comment->setCase($this);

        return $this;
    }
                                            
Was this example useful?
0
                                                    protected function syncCaseCommentFields(CaseComment $caseComment, TicketComment $ticketComment)
    {
        $caseComment->setPublic($ticketComment->getPublic());
        if ($ticketComment->getOriginCreatedAt()) {
            $caseComment->setCreatedAt($ticketComment->getOriginCreatedAt());
        }
        $caseComment->setMessage($ticketComment->getBody());
        $this->syncCaseCommentOwnerAndUser($caseComment, $ticketComment);
    }
                                            
CaseComment's Other Methods
CaseComment's Other Methods