ModelBundle/Repository/BlockRepository.php
public function findTransverseBlock($component, $siteId, $language)
    {
        $qa = $this->createAggregationQueryBuilderWithSiteIdAndLanguage($siteId, $language, true);

        $qa->match(array(
            'component' => $component
        ));

        return $this->hydrateAggregateQuery($qa);
    }
public function findTransverseBlock($component, $siteId, $language)
    {
        $qa = $this->createAggregationQueryBuilderWithSiteIdAndLanguage($siteId, $language, true);

        $qa->match(array(
            'component' => $component
        ));

        return $this->hydrateAggregateQuery($qa);
    }
public function findTransverseBlock ( $ component , $ siteId , $ language ) { $ qa = $ this -> createAggregationQueryBuilderWithSiteIdAndLanguage ( $ siteId , $ language , true ) ; $ qa -> match ( array ( 'component' => $ component ) ) ; return $ this -> hydrateAggregateQuery ( $ qa ) ; }
@param string $component
@param string $siteId
@param string $language

@return array
@param string $component @param string $siteId @param string $language