Widget/WidgetBuilder.php
private function loadUserConfig()
    {
        if (!$this->widgetConfig) {
            $this->widgetConfig = $this->entityManager
                ->getRepository('PdWidgetBundle:WidgetUser')
                ->findOneBy([
                    'owner' => $this->tokenStorage->getToken()->getUser(),
                ]);

            if (null !== $this->widgetConfig) {
                $this->widgetConfig = $this->widgetConfig->getConfig();
            }
        }
    }
private function loadUserConfig()
    {
        if (!$this->widgetConfig) {
            $this->widgetConfig = $this->entityManager
                ->getRepository('PdWidgetBundle:WidgetUser')
                ->findOneBy([
                    'owner' => $this->tokenStorage->getToken()->getUser(),
                ]);

            if (null !== $this->widgetConfig) {
                $this->widgetConfig = $this->widgetConfig->getConfig();
            }
        }
    }
Load User Widget Configuration.