PaymentTypeRepository
class PaymentTypeRepository extends EntityRepository
Class PaymentTypeRepository is injected as service. PaymentTypeRepository is used for crud operation for managed entity.
Use this class to work with database.
Traits
Constants
| ALIAS |
Payment type alias |
| CHECKOUT_SETTINGS_ALIAS |
Checkout settings alias |
| DISABLED_ROLES_ALIAS |
Disabled roles alias |
| DISABLED_GUEST_ROLES_ALIAS |
Disabled guest roles alias |
| ALLOWED_PRICELISTS |
Allowed pricelists alias |
| PAYMENT_TYPE_RESULT_CACHE |
Payment type result cache key |
Methods
Should contain group by which jqgrid uses.
JQGrid function
JQGrid function
Get all payment types id, name and value
Get all payment types for edit
Find all payment types to cache
Get payment type by id
Get payment type object from database by primary key
Save payment types from array
Remove multiple payment types from database
Get object reference by id
Get payment type role settings as array
Get payment type by name
Delete payment type result cache
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 56
array
findAllPaymentTypes()
Get all payment types id, name and value
at line 68
array
findAllPaymentTypesForEdit()
Get all payment types for edit
at line 85
array
findAllPaymentTypesToCache(int|string|null $checkoutSettingsId = null)
Find all payment types to cache
at line 109
mixed
findPaymentTypeById(int $id)
Get payment type by id
at line 127
mixed
getPaymentTypeObjByPk(int $id)
Get payment type object from database by primary key
at line 141
PaymentType|int
save(PaymentType $entity)
Persist payment type object to database
at line 162
PaymentType|int
edit(PaymentType $entity)
Edit payment type entity
at line 183
bool
remove(PaymentType $entity)
Remove entity from database
at line 202
bool
savePaymentTypesFromArray(array $array)
Save payment types from array
at line 226
bool
removePaymentTypesFromArray(array $array)
Remove multiple payment types from database
at line 254
mixed
getReference(int $id, string $class = PaymentType::class)
Get object reference by id
at line 263
array
getPaymentTypeRoleSettingsArray()
Get payment type role settings as array
at line 293
mixed
getPaymentTypeByName(string $name)
Get payment type by name
at line 316
deleteResultsCache()
Delete payment type result cache