ProductGroupRepository
class ProductGroupRepository extends EntityRepository implements AbstractBlockElementRepositoryInterface
Class ProductGroupRepository is injected as alligator.product.group.repository service. ProductGroupRepository is used for crud operation for entity.
Use this class to work with database.
Traits
Constants
| ALIAS |
Alias for main entity |
Methods
Should contain group by which jqgrid uses.
JQGrid function
JQGrid function
Get all product groups
Get reference to Product Group class
Get Product Group by id
Get array of Product Groups for ids
Delete multiple Product Groups
Get all Product Groups that are active and have valid from and to dates
Change priority of Product Groups
Get Product Groups count
Save multiple groups
Delete multiple product groups
No description
No description
Find groups by name, wildcard can be used
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 37
array
getAllGroups()
Get all product groups
at line 53
ProductGroup
getReference(mixed $id)
Get reference to Product Group class
at line 67
ProductGroup|null
findByPk(mixed $id)
Get Product Group by id
at line 83
array
getProductGroupsArray(array $ids)
Get array of Product Groups for ids
at line 98
ProductGroup
edit(ProductGroup $productGroup)
Edit ProductGroup entity
at line 117
ProductGroup
save(ProductGroup $productGroup)
Save new Product Group entity
at line 139
mixed
delete(ProductGroup $productGroup)
Delete single Product Group
at line 154
bool
deleteCollection(array $productGroups)
Delete multiple Product Groups
at line 174
array
findAllGroupsWithProducts()
Get all Product Groups that are active and have valid from and to dates
at line 201
bool
changeOrder(int $id, int $newIndex)
Change priority of Product Groups
at line 235
int
getGroupsCount()
Get Product Groups count
at line 253
bool|string
saveMultiple(array $newGroups, array $updatedGroups)
Save multiple groups
at line 299
bool
deleteProductGroupsAfterSync(array $groupsToSave, array $additionalParams = [])
Delete multiple product groups
at line 331
array
getEntitiesForBlockElementsExtension(array $ids)
at line 353
array
getEntityNamesForIds(array $ids)
at line 374
array
findGroupsByName(string $name)
Find groups by name, wildcard can be used