Ejemplo n.º 1
0
 protected function doCreateQuery(Kdyby\Persistence\Queryable $repository)
 {
     $qb = $repository->createQueryBuilder()->select('a')->from(Model\CMS\Entity\Page::getClassName(), 'a');
     $this->applyFilters($qb);
     return $qb->getQuery()->useResultCache(TRUE, NULL, Model\CMS\Service\PageService::CACHE_TAG);
 }
Ejemplo n.º 2
0
 public function __construct(Kdyby\Doctrine\EntityManager $entityManager)
 {
     parent::__construct($entityManager);
     $this->entityClassName = Entity\Page::getClassName();
 }