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

Trait JQGridTrait

Constants

ALIAS

Alias for main entity

JOIN_WITH_PRODUCT_ALIAS

Alias for product

JOIN_WITH_VIDEO_DOCUMENT

Alias for document

Methods

jQGridJoinFields(QueryBuilder $qb, JQGridWrapper $jqGridWrapper)

All joins used in select.

jQGridGroupByFields(QueryBuilder $qb, JQGridWrapper $jqGridWrapper)

Should contain group by which jqgrid uses.

array
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams, JQGridWrapper $jqGridWrapper)

JQGrid function

array
searchForJQGRID(array $searchParams, array $sortParams, bool $isCountSearch = false, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

JQGrid function

mixed
getVideoByProduct(int $id)

Get video for product id

mixed
getVideoByPk(int $id)

Get video by id

object|ProductVideo
editVideo(ProductVideo $video)

Merge ProductVideo

array
getVideosArray(array $array)

Get multiple videos

mixed
deleteVideos(array $productsVideos)

Delete multiple videos

save(PrimaryKeyInterface $entity)

Persist ProductVideo

remove(mixed $entity)

Delete single ProductVideo

edit(PrimaryKeyInterface $entity)

Merge ProductVideo

string
getAlias()

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

Parameters

QueryBuilder $qb
JQGridWrapper $jqGridWrapper

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

Parameters

QueryBuilder $qb
JQGridWrapper $jqGridWrapper

in JQGridTrait at line 61
array findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams, JQGridWrapper $jqGridWrapper)

JQGrid function

Parameters

int $page
int $offset
array $sortParams
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

array

in JQGridTrait at line 94
array searchForJQGRID(array $searchParams, array $sortParams, bool $isCountSearch = false, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

JQGrid function

Parameters

array $searchParams
array $sortParams
bool $isCountSearch
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

array

at line 52
mixed getVideoByProduct(int $id)

Get video for product id

Parameters

int $id

Return Value

mixed

at line 91
mixed getVideoByPk(int $id)

Get video by id

Parameters

int $id

Return Value

mixed

at line 107
object|ProductVideo editVideo(ProductVideo $video)

Merge ProductVideo

Parameters

ProductVideo $video

Return Value

object|ProductVideo

Exceptions

Exception

at line 129
array getVideosArray(array $array)

Get multiple videos

Parameters

array $array

Return Value

array

at line 143
mixed deleteVideos(array $productsVideos)

Delete multiple videos

Parameters

array $productsVideos

Return Value

mixed

at line 166
PrimaryKeyInterface save(PrimaryKeyInterface $entity)

Persist ProductVideo

Parameters

PrimaryKeyInterface $entity

Return Value

PrimaryKeyInterface

Exceptions

Exception

at line 180
remove(mixed $entity)

Delete single ProductVideo

Parameters

mixed $entity

Exceptions

Exception

at line 194
PrimaryKeyInterface edit(PrimaryKeyInterface $entity)

Merge ProductVideo

Parameters

PrimaryKeyInterface $entity

Return Value

PrimaryKeyInterface

Exceptions

Exception

at line 205
protected string getAlias()

Return Value

string