class BlogCommentManager implements JQGridInterface, BasicEntityManagerInterface

Class BlogCommentManager is injected as alligator.blog_comment_manager service. BlogCommentManager handles the logic for managed entity.

Traits

Trait JQGridManagerTrait

Properties

protected BlogCommentRepository $repository
protected BlogCommentContainer $container

Methods

mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

No description

mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

No description

mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)

No description

__construct(BlogCommentRepository $repository, BlogCommentContainer $container)

No description

array
findOneByIdCustom(int $id)

Find blog comment by id

mixed
saveComment(BlogComment $blogComment)

Check for all preconditions, create references to all foreign entities and persist new blog comment

bool
editBlogComment(BlogComment $blogComment)

Check for all preconditions, create references to all foreign entities and merge blog comment

array
deleteBlogComments(array $blogCommentsIDs)

Remove blog comment for provided array of ids

bool
updateObjects(User $user)

Update blog comment fields for specific User

array
findCommentsForPost(string $slug, int $page)

Find comments for provided post slug

array
countCommentsForPost(string $slug)

Count number of comments for post by its slug

Details

in JQGridManagerTrait at line 26
mixed searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

Parameters

array $searchParams
array $sortParams
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

mixed

in JQGridManagerTrait at line 40
mixed findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

Parameters

int $page
int $offset
array $sortParams
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

mixed

in JQGridManagerTrait at line 53
mixed getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)

Parameters

array|null $searchParams
array|null $sortParams
array|null $additionalParams
JQGridWrapper|null $jqGridWrapper

Return Value

mixed

at line 41
__construct(BlogCommentRepository $repository, BlogCommentContainer $container)

Parameters

BlogCommentRepository $repository
BlogCommentContainer $container

at line 55
array findOneByIdCustom(int $id)

Find blog comment by id

Parameters

int $id

Return Value

array

See also

BlogComment

at line 69
mixed saveComment(BlogComment $blogComment)

Check for all preconditions, create references to all foreign entities and persist new blog comment

Parameters

BlogComment $blogComment

Return Value

mixed

Exceptions

ORMException
OptimisticLockException

at line 82
bool editBlogComment(BlogComment $blogComment)

Check for all preconditions, create references to all foreign entities and merge blog comment

Parameters

BlogComment $blogComment

Return Value

bool

at line 95
array deleteBlogComments(array $blogCommentsIDs)

Remove blog comment for provided array of ids

Parameters

array $blogCommentsIDs

Return Value

array

at line 111
bool updateObjects(User $user)

Update blog comment fields for specific User

Parameters

User $user

Return Value

bool

at line 123
array findCommentsForPost(string $slug, int $page)

Find comments for provided post slug

Parameters

string $slug
int $page

Return Value

array

at line 137
array countCommentsForPost(string $slug)

Count number of comments for post by its slug

Parameters

string $slug

Return Value

array

Exceptions

NoResultException
NonUniqueResultException