Esempio n. 1
0
 /**
  * Get search index repository
  *
  * @return SearchIndexRepository
  */
 protected function getIndexRepository()
 {
     if (!$this->indexRepository) {
         $this->indexRepository = $this->registry->getRepository('OroSearchBundle:Item');
         $this->indexRepository->setDriversClasses($this->drivers);
     }
     return $this->indexRepository;
 }
Esempio n. 2
0
 /**
  * Get search index repository
  *
  * @return \Oro\Bundle\SearchBundle\Entity\Repository\SearchIndexRepository
  */
 protected function getIndexRepo()
 {
     if (!is_object($this->searchRepo)) {
         $this->searchRepo = $this->em->getRepository('OroSearchBundle:Item');
         $this->searchRepo->setDriversClasses($this->container->getParameter('oro_search.engine_orm'));
     }
     return $this->searchRepo;
 }