ProductRepository extends AbstractRepository
ProductRepository
This class was generated by the Doctrine ORM. Add your own custom repository methods below.
Table of Contents
$queries | Queries | |
---|---|---|
$eccubeConfig | EccubeConfig | |
$eccubeConfig | array | |
__construct() | ProductRepository constructor. | mixed |
findWithSortedClassCategories() | Find the Product with sorted ClassCategories. | Product |
findProductsWithSortedClassCategories() | Find the Products with sorted ClassCategories. | ArrayCollection|array |
getQueryBuilderBySearchData() | get query builder. | QueryBuilder |
getQueryBuilderBySearchDataForAdmin() | get query builder. | QueryBuilder |
delete() | エンティティを削除します。 物理削除ではなく、del_flgを利用した論理削除を行います。 | mixed |
save() | エンティティの登録/保存します。 | mixed |
getCacheLifetime() | mixed |
Properties
$queries
protected
Queries
$queries
$eccubeConfig
protected
EccubeConfig
$eccubeConfig
$eccubeConfig
protected
array
$eccubeConfig
Methods
__construct()
ProductRepository constructor.
public
__construct(
$registry :
RegistryInterface
, $queries :
Queries
, $eccubeConfig :
EccubeConfig
)
: mixed
Parameters
- $registry : RegistryInterface
- $queries : Queries
- $eccubeConfig : EccubeConfig
Return values
mixedfindWithSortedClassCategories()
Find the Product with sorted ClassCategories.
public
findWithSortedClassCategories(
$productId :
int
)
: Product
Parameters
- $productId : int
Return values
ProductfindProductsWithSortedClassCategories()
Find the Products with sorted ClassCategories.
public
findProductsWithSortedClassCategories(
$ids :
array
[, $indexBy :
string
= null ]
)
: ArrayCollection|array
Parameters
- $ids : array
Product in ids
- $indexBy : string = null
The index for the from.
Return values
ArrayCollection|arraygetQueryBuilderBySearchData()
get query builder.
public
getQueryBuilderBySearchData(
$searchData :
array
)
: QueryBuilder
Parameters
- $searchData : array
Return values
QueryBuildergetQueryBuilderBySearchDataForAdmin()
get query builder.
public
getQueryBuilderBySearchDataForAdmin(
$searchData :
array
)
: QueryBuilder
Parameters
- $searchData : array
Return values
QueryBuilderdelete()
エンティティを削除します。 物理削除ではなく、del_flgを利用した論理削除を行います。
public
delete(
$entity :
AbstractEntity
)
: mixed
Parameters
- $entity : AbstractEntity
Return values
mixedsave()
エンティティの登録/保存します。
public
save(
$entity :
mixed
)
: mixed
Parameters
- $entity : mixed
Return values
mixedgetCacheLifetime()
protected
getCacheLifetime(
)
: mixed