Bundle/WidgetMapBundle/Warmer/WidgetDataWarmer.php
public function warm(EntityManager $em, View $view)
    {
        $this->em = $em;

        /* @var WidgetRepository $widgetRepo */
        $widgetRepo = $this->em->getRepository('Victoire\Bundle\WidgetBundle\Entity\Widget');
        $viewWidgets = $widgetRepo->findAllWidgetsForView($view);

        $this->injectWidgets($view, $viewWidgets);

        $this->extractAssociatedEntities($viewWidgets);
    }
public function warm(EntityManager $em, View $view)
    {
        $this->em = $em;

        /* @var WidgetRepository $widgetRepo */
        $widgetRepo = $this->em->getRepository('Victoire\Bundle\WidgetBundle\Entity\Widget');
        $viewWidgets = $widgetRepo->findAllWidgetsForView($view);

        $this->injectWidgets($view, $viewWidgets);

        $this->extractAssociatedEntities($viewWidgets);
    }
public function warm ( EntityManager $ em , View $ view ) { $ this -> em = $ em ; /* @var WidgetRepository $widgetRepo */ $ widgetRepo = $ this -> em -> getRepository ( 'Victoire\Bundle\WidgetBundle\Entity\Widget' ) ; $ viewWidgets = $ widgetRepo -> findAllWidgetsForView ( $ view ) ; $ this -> injectWidgets ( $ view , $ viewWidgets ) ; $ this -> extractAssociatedEntities ( $ viewWidgets ) ; }
Find all Widgets for current View, inject them in WidgetMap and warm associated entities.

@param EntityManager $em
@param View          $view
Find all Widgets for current View inject them in WidgetMap and warm associated entities .