BlogCommentRepository
class BlogCommentRepository extends EntityRepository
Class BlogCommentRepository is injected as alligator.blog_comment_repository service. BlogCommentRepository is used for crud operation for managed entity.
Use this class to work with database.
Traits
Constants
| BLOG_COMMENT_OFFSET |
Blog comment offset |
| ALIAS |
|
Methods
Should contain group by which jqgrid uses.
JQGrid function
JQGrid function
Alias for BlogComment
Alias for User
Alias for BlogPost
Find blog comment by id
Find comments for provided post slug
Count number of comments for post by its slug
Find blog comment for provided array of ids
Remove blog comment for provided array of ids
Details
in JQGridTrait at line 27
jQGridJoinFields(QueryBuilder $qb, JQGridWrapper $jqGridWrapper)
All joins used in select.
Override in the repository class if needed. Should do nothing otherwise
in JQGridTrait at line 42
jQGridGroupByFields(QueryBuilder $qb, JQGridWrapper $jqGridWrapper)
Should contain group by which jqgrid uses.
Override in the repository class if needed. Should do nothing otherwise
in JQGridTrait at line 61
array
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams, JQGridWrapper $jqGridWrapper)
JQGrid function
in JQGridTrait at line 94
array
searchForJQGRID(array $searchParams, array $sortParams, bool $isCountSearch = false, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
JQGrid function
at line 38
string
getAlias()
Alias for BlogComment
at line 49
string
getUserAlias()
Alias for User
at line 60
string
getBlogPostAlias()
Alias for BlogPost
at line 77
BlogComment
saveComment(BlogComment $blogComment)
Persist new blog comment
at line 93
array
findOneByIdCustom(int $id)
Find blog comment by id
at line 125
array
findCommentsForPost(string $slug, int $page)
Find comments for provided post slug
at line 162
mixed
countCommentsForPost(string $slug)
Count number of comments for post by its slug
at line 181
bool
editApproveComment(BlogComment $blogComment)
Merge blog comment
at line 208
bool
updateObjects(User $user)
Update blog comment fields for specific User
at line 238
array
getAllBlogComments(array $blogCommentsId)
Find blog comment for provided array of ids
at line 259
mixed
deleteBlogComments(array $blogCommentsIds)
Remove blog comment for provided array of ids