Method | Description | |
---|---|---|
findEnabledFromIdAndSlug ( integer $id, string $slug ) : Sonata\Component\Product\ProductInterface | null | Retrieve an active product from its id and its slug. | |
findInSameCollections ( $productCollections, $limit = null ) | ||
findParentsInSameCollections ( $productCollections, $limit = null ) | ||
findProductForCategory ( Sonata\ClassificationBundle\Model\CategoryInterface $category ) : Sonata\Component\Product\ProductInterface | null | Returns partial product example (only to get its class) from $category. | |
findVariations ( Sonata\Component\Product\ProductInterface $product ) | ||
getCategoryActiveProductsQueryBuilder ( Sonata\ClassificationBundle\Model\CategoryInterface $category = null, string $filter = null, mixed $option = null ) : Doctrine\ORM\QueryBuilder | Returns active products for a given category. | |
getPager ( array $criteria, $page, $limit = 10, array $sort = [] ) | ||
updateStock ( $product, $diff ) |
Method | Description | |
---|---|---|
getCategoryProductsQueryBuilder ( Sonata\ClassificationBundle\Model\CategoryInterface $category = null ) : Doctrine\ORM\QueryBuilder | Returns QueryBuilder for products. | |
queryInSameCollections ( array $productCollections, null | integer $limit = null ) : Doctrine\ORM\QueryBuilder |
public findInSameCollections ( $productCollections, $limit = null ) |
public findParentsInSameCollections ( $productCollections, $limit = null ) |
public findProductForCategory ( Sonata\ClassificationBundle\Model\CategoryInterface $category ) : Sonata\Component\Product\ProductInterface | null | ||
$category | Sonata\ClassificationBundle\Model\CategoryInterface | |
return | Sonata\Component\Product\ProductInterface | null |
public findVariations ( Sonata\Component\Product\ProductInterface $product ) | ||
$product | Sonata\Component\Product\ProductInterface |
public getCategoryActiveProductsQueryBuilder ( Sonata\ClassificationBundle\Model\CategoryInterface $category = null, string $filter = null, mixed $option = null ) : Doctrine\ORM\QueryBuilder | ||
$category | Sonata\ClassificationBundle\Model\CategoryInterface | |
$filter | string | |
$option | mixed | |
return | Doctrine\ORM\QueryBuilder |
protected getCategoryProductsQueryBuilder ( Sonata\ClassificationBundle\Model\CategoryInterface $category = null ) : Doctrine\ORM\QueryBuilder | ||
$category | Sonata\ClassificationBundle\Model\CategoryInterface | |
return | Doctrine\ORM\QueryBuilder |