ProductOnModelRepository
class ProductOnModelRepository extends EntityRepository
Class ProductOnModelRepository is injected as empire_product_on_model_plugin.repository service. ProductOnModelRepository is used for crud operation for managed entity.
Use this class to work with database.
Traits
Constants
| ALIAS |
Product on model alias |
| JOIN_WITH_PRODUCT |
Product alias |
| JOIN_WITH_TAGS |
Tags alias |
| JOIN_WITH_SIMPLE_PRODUCT |
Simple product alias |
| JOIN_WITH_IMAGE |
Image alias |
Methods
Should contain group by which jqgrid uses.
JQGrid function
JQGrid function
Remove object from database
Find product on model by primary key
Delete products on model using array of entities
Get product on models
Find all products on model with pagination
Get product on model by tag id
Remove products on model with no products
Get products on model with no tags
Get product on model ids
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 59
ProductOnModel
save(ProductOnModel $entity)
Persist product on model entity
at line 77
remove(mixed $entity)
Remove object from database
at line 92
ProductOnModel
edit(ProductOnModel $entity)
Edit product on model
at line 113
mixed
findProductOnModelByPk(int $id)
Find product on model by primary key
at line 138
object|ProductOnModel
editProductOnModel(ProductOnModel $productOnModel)
Edit product on model entity
at line 157
deleteProductsOnModel(mixed $productsOnModel)
Delete products on model using array of entities
at line 175
array
getModelsArray(array $array)
Get product on models
at line 198
array
findAllProductsOnModel(int $page = 1, int $offset = 12, bool $isCount = false)
Find all products on model with pagination
at line 228
mixed
getProductOnModelByTagId(int|string $id)
Get product on model by tag id
at line 240
removeProductsOnModelWithNoProducts()
Remove products on model with no products
at line 257
array
getProductsOnModelWithNoTags()
Get products on model with no tags
at line 271
array
getProductsOnModelIds()
Get product on model ids