class BlockPageRepository extends EntityRepository

Class BlockPageRepository is injected as empire_block_page.repository service. BlockPageRepository is used for crud operation for entity.

Use this class to work with database.

Traits

Trait JQGridTrait

Constants

ALIAS

Alias for main entity

Methods

jQGridJoinFields(QueryBuilder $qb, JQGridWrapper $jqGridWrapper)

All joins used in select.

jQGridGroupByFields(QueryBuilder $qb, JQGridWrapper $jqGridWrapper)

Should contain group by which jqgrid uses.

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

JQGrid function

array
searchForJQGRID(array $searchParams, array $sortParams, bool $isCountSearch = false, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

JQGrid function

BlockPage|string
save(BlockPage $object)

Save Block Page

BlockPage|string
edit(BlockPage $object)

Merge block Page

findBlockPageBySlug(string $param)

Get Single Block Page by slug or id

deletePages(array $ids)

Delete multiple pages

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

Parameters

QueryBuilder $qb
JQGridWrapper $jqGridWrapper

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

Parameters

QueryBuilder $qb
JQGridWrapper $jqGridWrapper

in JQGridTrait at line 61
array findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams, JQGridWrapper $jqGridWrapper)

JQGrid function

Parameters

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

Return Value

array

in JQGridTrait at line 94
array searchForJQGRID(array $searchParams, array $sortParams, bool $isCountSearch = false, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

JQGrid function

Parameters

array $searchParams
array $sortParams
bool $isCountSearch
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

array

at line 38
BlockPage|string save(BlockPage $object)

Save Block Page

Parameters

BlockPage $object

Return Value

BlockPage|string

at line 58
BlockPage|string edit(BlockPage $object)

Merge block Page

Parameters

BlockPage $object

Return Value

BlockPage|string

at line 81
BlockPage findBlockPageBySlug(string $param)

Get Single Block Page by slug or id

Parameters

string $param

Return Value

BlockPage

Exceptions

NoResultException
NonUniqueResultException

at line 102
deletePages(array $ids)

Delete multiple pages

Parameters

array $ids

Exceptions

ORMException
OptimisticLockException