PHP Class Sonata\ProductBundle\Repository\BaseProductRepository

Author: Sylvain Deloux ([email protected])
Inheritance: extends Doctrine\ORM\EntityRepository
Show file Open project: sonata-project/ecommerce

Public Methods

Method Description
findLastActiveProducts ( integer $limit = 5 ) : array Returns an array of last products.

Method Details

findLastActiveProducts() public method

Returns an array of last products.
public findLastActiveProducts ( integer $limit = 5 ) : array
$limit integer Number max of required results
return array