ProductGroupDiscountUserRepository
class ProductGroupDiscountUserRepository extends EntityRepository
Class ProductGroupDiscountUserRepository is injected as alligator.product.group.discount.user.repository service. ProductGroupDiscountUserRepository is used for crud operation for entity.
Use this class to work with database.
Traits
Constants
| ALIAS |
|
| USER_ALIAS |
|
| GROUP_ALIAS |
|
Methods
Should contain group by which jqgrid uses.
JQGrid function
JQGrid function
Get reference for class
Get ProductGroupDiscountUser by id
Delete multiple ProductGroupDiscountUser's
Gets multiple ProductGroupDiscountUser entities
Check if Discount for specified parameters already exists.
Save multiple discounts
Get ProductGroupDiscountUser based on discounts array
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 39
mixed
getReference(mixed $id, string $class = ProductGroupDiscountUser::class)
Get reference for class
at line 53
ProductGroupDiscountUser
findByPk(mixed $id)
Get ProductGroupDiscountUser by id
at line 70
ProductGroupDiscountUser
edit(ProductGroupDiscountUser $productGroupDiscountUser)
Edit ProductGroupDiscountUser entity
at line 89
ProductGroupDiscountUser
save(ProductGroupDiscountUser $productGroupDiscountUser)
Save ProductGroupDiscountUser entity
at line 110
ProductGroupDiscountUser
delete(ProductGroupDiscountUser $productGroupDiscountUser)
Delete one ProductGroupDiscountUser
at line 125
bool
deleteCollection(array $productGroupDiscountUsers)
Delete multiple ProductGroupDiscountUser's
at line 147
array
getArrayByIds(array $ids)
Gets multiple ProductGroupDiscountUser entities
at line 163
bool
checkIfDiscountIsValid(ProductGroupDiscountUser $productGroupDiscountUser)
Check if Discount for specified parameters already exists.
There can be only one disconunt with specific parameters
at line 210
bool|string
saveMultiple(array $newGroupDiscounts, array $updatedGroupDiscounts)
Save multiple discounts
at line 254
array
getDiscountsByValues(array $discountArray)
Get ProductGroupDiscountUser based on discounts array