ModelBundle/Repository/BlockRepository.php
public function findForPaginateBySiteIdAndLanguage(
        PaginateFinderConfiguration $configuration,
        $siteId,
        $language,
        $transverse
    ) {
        $qa = $this->createAggregationQueryBuilderWithSiteIdAndLanguage($siteId, $language, $transverse);
        $this->filterSearch($configuration, $qa);

        $order = $configuration->getOrder();
        if (!empty($order)) {
            $qa->sort($order);
        }

        $qa->skip($configuration->getSkip());
        $qa->limit($configuration->getLimit());

        return $this->hydrateAggregateQuery($qa);
    }
public function findForPaginateBySiteIdAndLanguage(
        PaginateFinderConfiguration $configuration,
        $siteId,
        $language,
        $transverse
    ) {
        $qa = $this->createAggregationQueryBuilderWithSiteIdAndLanguage($siteId, $language, $transverse);
        $this->filterSearch($configuration, $qa);

        $order = $configuration->getOrder();
        if (!empty($order)) {
            $qa->sort($order);
        }

        $qa->skip($configuration->getSkip());
        $qa->limit($configuration->getLimit());

        return $this->hydrateAggregateQuery($qa);
    }
public function findForPaginateBySiteIdAndLanguage ( PaginateFinderConfiguration $ configuration , $ siteId , $ language , $ transverse ) { $ qa = $ this -> createAggregationQueryBuilderWithSiteIdAndLanguage ( $ siteId , $ language , $ transverse ) ; $ this -> filterSearch ( $ configuration , $ qa ) ; $ order = $ configuration -> getOrder ( ) ; if ( ! empty ( $ order ) ) { $ qa -> sort ( $ order ) ; } $ qa -> skip ( $ configuration -> getSkip ( ) ) ; $ qa -> limit ( $ configuration -> getLimit ( ) ) ; return $ this -> hydrateAggregateQuery ( $ qa ) ; }
@param string                      $siteId
@param string                      $language
@param PaginateFinderConfiguration $configuration
@param boolean                     $transverse

@return array
@param string $siteId @param string $language @param PaginateFinderConfiguration $configuration @param boolean $transverse