CatalogueRepository
class CatalogueRepository extends EntityRepository
Class CatalogueRepository is injected as empire_digital_catalogue_plugin.catalogue_repository service. CatalogueRepository is used for crud operation for managed entity.
Use this class to work with database.
Traits
Constants
| ALIAS |
Catalogue alias |
| CATEGORY_ALIAS |
Category alias |
| PRODUCT_ALIAS |
Product alias |
| IMAGE_FIRST_ALIAS |
First page image alias |
| IMAGE_LAST_ALIAS |
Last page image alias |
Methods
Should contain group by which jqgrid uses.
JQGrid function
JQGrid function
Get all catalogues with custom selected fields
Get catalogue object by id
Get digital catalogue by id with custom select fields
Get digital catalogue for print
Get digital catalogue products for print
Get array of catalogues
Delete catalogues from array
Get all catalogue ids
Get all catalogues for categories
Change order of catalogues
Get catalogues count
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 58
mixed
save(Catalogue $object)
Persist object to database
at line 87
array
getAllCataloguesWithSelect()
Get all catalogues with custom selected fields
at line 102
Catalogue|mixed
getDigitalCatalogueById(int $id)
Get catalogue object by id
at line 116
mixed
getDigitalCatalogueByIdWithSelect(int $id)
Get digital catalogue by id with custom select fields
at line 149
array
getDigitalCatalogueForPrint(int $catalogueId)
Get digital catalogue for print
at line 195
array
getDigitalCatalogueForPrintActionProducts(int $catalogueId)
Get digital catalogue products for print
at line 222
array
getCataloguesArray(array $catalogues)
Get array of catalogues
at line 239
bool
deleteCatalogues(array $catalogues)
Delete catalogues from array
at line 258
array
getAllCataloguesIds()
Get all catalogue ids
at line 272
mixed
getAllCataloguesForCategories(array $categories)
Get all catalogues for categories
at line 293
bool
changeOrder(int $id, int $newIndex)
Change order of catalogues
at line 327
int
getCataloguesCount()
Get catalogues count