src/Kunstmaan/AdminListBundle/AdminList/Configurator/AbstractPageAdminListConfigurator.php
public function getOverviewPage()
    {
        /** @var EntityRepository $repository */
        $repository = $this->em->getRepository($this->getOverviewPageClass());

        $overviewPage = $repository->createQueryBuilder('o')
            ->orderBy('o.id', 'DESC')
            ->setMaxResults(1)
            ->getQuery()
            ->getOneOrNullResult();

        return $overviewPage;
    }
public function getOverviewPage()
    {
        /** @var EntityRepository $repository */
        $repository = $this->em->getRepository($this->getOverviewPageClass());

        $overviewPage = $repository->createQueryBuilder('o')
            ->orderBy('o.id', 'DESC')
            ->setMaxResults(1)
            ->getQuery()
            ->getOneOrNullResult();

        return $overviewPage;
    }
public function getOverviewPage ( ) { /** @var EntityRepository $repository */ $ repository = $ this -> em -> getRepository ( $ this -> getOverviewPageClass ( ) ) ; $ overviewPage = $ repository -> createQueryBuilder ( 'o' ) -> orderBy ( 'o.id' , 'DESC' ) -> setMaxResults ( 1 ) -> getQuery ( ) -> getOneOrNullResult ( ) ; return $ overviewPage ; }
Returns the overviewpage.
Returns the overviewpage .