Bundle/WidgetBundle/Resolver/BaseWidgetContentResolver.php
public function getWidgetQueryBuilder(Widget $widget)
    {
        //get the base query
        $itemsQueryBuilder = $this->queryHelper->getQueryBuilder($widget, $this->entityManager);

        // Filter only visibleOnFront
        $itemsQueryBuilder->andWhere('main_item.visibleOnFront = true');

        //add the query of the widget
        return $this->queryHelper->buildWithSubQuery($widget, $itemsQueryBuilder, $this->entityManager);
    }
public function getWidgetQueryBuilder(Widget $widget)
    {
        //get the base query
        $itemsQueryBuilder = $this->queryHelper->getQueryBuilder($widget, $this->entityManager);

        // Filter only visibleOnFront
        $itemsQueryBuilder->andWhere('main_item.visibleOnFront = true');

        //add the query of the widget
        return $this->queryHelper->buildWithSubQuery($widget, $itemsQueryBuilder, $this->entityManager);
    }
public function getWidgetQueryBuilder ( Widget $ widget ) { //get the base query $ itemsQueryBuilder = $ this -> queryHelper -> getQueryBuilder ( $ widget , $ this -> entityManager ) ; // Filter only visibleOnFront $ itemsQueryBuilder -> andWhere ( 'main_item.visibleOnFront = true' ) ; //add the query of the widget return $ this -> queryHelper -> buildWithSubQuery ( $ widget , $ itemsQueryBuilder , $ this -> entityManager ) ; }
Get the widget query result.

@param Widget $widget The widget

@return \Doctrine\ORM\QueryBuilder The list of entities
Get the widget query result .