src/PHPDish/Bundle/PostBundle/Service/CategoryManager.php
public function findCategoriesPager(Criteria $criteria, $page, $limit = null)
    {
        $query = $this->getCategoryRepository()->createQueryBuilder('c')
            ->addCriteria($criteria)
            ->getQuery();
        return $this->createPaginator($query, $page, $limit);
    }
public function findCategoriesPager(Criteria $criteria, $page, $limit = null)
    {
        $query = $this->getCategoryRepository()->createQueryBuilder('c')
            ->addCriteria($criteria)
            ->getQuery();
        return $this->createPaginator($query, $page, $limit);
    }
{@inheritdoc}