src/Kunstmaan/NodeSearchBundle/Configuration/NodePagesConfiguration.php
public function populateIndex()
    {
        $nodeRepository = $this->em->getRepository('KunstmaanNodeBundle:Node');
        $nodes = $nodeRepository->getAllTopNodes();

        foreach ($nodes as $node) {
            $this->currentTopNode = $node;
            foreach ($this->locales as $lang) {
                $this->createNodeDocuments($node, $lang);
            }
        }

        if (!empty($this->documents)) {
            $this->searchProvider->addDocuments($this->documents);
            $this->documents = [];
        }
    }
public function populateIndex()
    {
        $nodeRepository = $this->em->getRepository('KunstmaanNodeBundle:Node');
        $nodes = $nodeRepository->getAllTopNodes();

        foreach ($nodes as $node) {
            $this->currentTopNode = $node;
            foreach ($this->locales as $lang) {
                $this->createNodeDocuments($node, $lang);
            }
        }

        if (!empty($this->documents)) {
            $this->searchProvider->addDocuments($this->documents);
            $this->documents = [];
        }
    }
public function populateIndex ( ) { $ nodeRepository = $ this -> em -> getRepository ( 'KunstmaanNodeBundle:Node' ) ; $ nodes = $ nodeRepository -> getAllTopNodes ( ) ; foreach ( $ nodes as $ node ) { $ this -> currentTopNode = $ node ; foreach ( $ this -> locales as $ lang ) { $ this -> createNodeDocuments ( $ node , $ lang ) ; } } if ( ! empty ( $ this -> documents ) ) { $ this -> searchProvider -> addDocuments ( $ this -> documents ) ; $ this -> documents = [ ] ; } }
Populate node index
Populate node index