CommentRepository
class CommentRepository extends EntityRepository
Class CommentRepository is injected as alligator.comment_repository service. CommentRepository is used for crud operation for entity.
Use this class to work with database.
Constants
| ALIAS |
|
| USER_ALIAS |
|
| TICKET_ALIAS |
|
Methods
Comment[]
getAllComments()
Find all comments
bool
changeCommentStatuses(array $arrayOfComments, int $ticketId)
Change status of all provided comments to "seen"
array
findAllCommentsById(int $id)
Find all comments for provided ticket id
array
getAllCommentsLimited(mixed $limit)
Find provided($limit) number of comments(as array)
Details
at line 43
Comment[]
getAllComments()
Find all comments
at line 79
bool
changeCommentStatuses(array $arrayOfComments, int $ticketId)
Change status of all provided comments to "seen"
at line 120
array
findAllCommentsById(int $id)
Find all comments for provided ticket id
at line 146
array
getAllCommentsLimited(mixed $limit)
Find provided($limit) number of comments(as array)