Bundle/WidgetBundle/Repository/WidgetRepository.php
public function findAllWidgetsForView(View $view)
    {
        $qb = $this->getAllForView($view);

        return $qb->getQuery()->getResult();
    }
public function findAllWidgetsForView(View $view)
    {
        $qb = $this->getAllForView($view);

        return $qb->getQuery()->getResult();
    }
public function findAllWidgetsForView ( View $ view ) { $ qb = $ this -> getAllForView ( $ view ) ; return $ qb -> getQuery ( ) -> getResult ( ) ; }
Find all Widgets for a given View.

@param View $view

@return Widget[]
Find all Widgets for a given View .