Product360Repository
class Product360Repository extends EntityRepository
Class Product360Repository is injected as empire_product_360_plugin.repository service. Product360Repository is used for crud operation for managed entity.
Use this class to work with database.
Traits
Constants
| ALIAS |
Product 360 alias |
| JOIN_WITH_IMAGES_ALIAS |
Product 360 images alias |
| PRODUCT_360_IMAGE |
Product 360 image alias |
| JOIN_WITH_PRODUCT |
Product alias |
| IMAGE_ALIAS |
Image alias |
Methods
Should contain group by which jqgrid uses.
JQGrid function
JQGrid function
Get product 360 by primary key
Find product 360 images by order and product 360 primary key
Find product 360 by product primary key
Find product 360 by product primary key and order images by position
Check if product has product 360
Get product360 array by ids from array
Delete products 360 from database
Remove entity from database
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 65
mixed
findProduct360ByPk(int $id)
Get product 360 by primary key
at line 81
array
findOrderedByPosition(int $id)
Find product 360 images by order and product 360 primary key
at line 104
mixed
findProduct360ByProduct(int $id)
Find product 360 by product primary key
at line 133
mixed
findProduct360ByProductOrderByPriority(int $id)
Find product 360 by product primary key and order images by position
at line 168
mixed
does360ExistForProduct(int $id)
Check if product has product 360
at line 185
array
getProducts360Array(array $array)
Get product360 array by ids from array
at line 201
deleteProducts360(array $productOnModelArrayDB)
Delete products 360 from database
at line 221
PrimaryKeyInterface
save(PrimaryKeyInterface $entity)
Persist entity to database
at line 243
remove(mixed $entity)
Remove entity from database
at line 259
PrimaryKeyInterface
edit(PrimaryKeyInterface $entity)
Edit entity in database