class ProductRepository extends EntityRepository

ProductRepository

This class was generated by the Doctrine ORM. Add your own custom repository methods below.

Properties

protected Application $app

Methods

setApplication(Application $app)

No description

get(integer $productId)

get Product.

QueryBuilder
getQueryBuilderBySearchData(array $searchData)

get query builder.

QueryBuilder
getQueryBuilderBySearchDataForAdmin(array $searchData)

get query builder.

QueryBuilder
getFavoriteProductQueryBuilderByCustomer($Customer) deprecated

get query builder.

Details

at line 50
setApplication(Application $app)

Parameters

Application $app

at line 63
Product get(integer $productId)

get Product.

Parameters

integer $productId

Return Value

Product

Exceptions

NotFoundHttpException

at line 89
QueryBuilder getQueryBuilderBySearchData(array $searchData)

get query builder.

Parameters

array $searchData

Return Value

QueryBuilder

at line 163
QueryBuilder getQueryBuilderBySearchDataForAdmin(array $searchData)

get query builder.

Parameters

array $searchData

Return Value

QueryBuilder

at line 283
QueryBuilder getFavoriteProductQueryBuilderByCustomer($Customer) deprecated

deprecated since 3.0.0, to be removed in 3.1

get query builder.

Parameters

$Customer

Return Value

QueryBuilder

See also

CustomerFavoriteProductRepository::getQueryBuilderByCustomer()