public function getWidgetQueryContent(Widget $widget)
    {
        $parameters = $this->getWidgetStaticContent($widget);

        $entity = $this->getWidgetQueryBuilder($widget)
                        ->setMaxResults(1)
                        ->getQuery()
                        ->getOneOrNullResult();

        $fields = $widget->getFields();
        $this->populateParametersWithWidgetFields($widget, $entity, $parameters);

        return $parameters;
    }