ProductVideoRepository
class ProductVideoRepository extends EntityRepository
Class ProductVideoRepository is injected as empire_product_video_plugin.repository service. ProductVideoRepository is used for crud operation for entity.
Use this class to work with database.
Traits
Constants
| ALIAS |
Alias for main entity |
| JOIN_WITH_PRODUCT_ALIAS |
Alias for product |
| JOIN_WITH_VIDEO_DOCUMENT |
Alias for document |
Methods
Should contain group by which jqgrid uses.
JQGrid function
JQGrid function
Get video for product id
Get video by id
Get multiple videos
Delete multiple videos
Delete single ProductVideo
No description
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 52
mixed
getVideoByProduct(int $id)
Get video for product id
at line 91
mixed
getVideoByPk(int $id)
Get video by id
at line 107
object|ProductVideo
editVideo(ProductVideo $video)
Merge ProductVideo
at line 129
array
getVideosArray(array $array)
Get multiple videos
at line 143
mixed
deleteVideos(array $productsVideos)
Delete multiple videos
at line 166
PrimaryKeyInterface
save(PrimaryKeyInterface $entity)
Persist ProductVideo
at line 180
remove(mixed $entity)
Delete single ProductVideo
at line 194
PrimaryKeyInterface
edit(PrimaryKeyInterface $entity)
Merge ProductVideo