src/Sulu/Component/DocumentManager/Subscriber/Phpcr/QuerySubscriber.php
public function handleQueryExecute(QueryExecuteEvent $event)
    {
        $query = $event->getQuery();
        $locale = $query->getLocale();
        $phpcrResult = $query->getPhpcrQuery()->execute();

        $event->setResult(
            new QueryResultCollection($phpcrResult, $this->eventDispatcher, $locale, $event->getOptions())
        );
    }
public function handleQueryExecute(QueryExecuteEvent $event)
    {
        $query = $event->getQuery();
        $locale = $query->getLocale();
        $phpcrResult = $query->getPhpcrQuery()->execute();

        $event->setResult(
            new QueryResultCollection($phpcrResult, $this->eventDispatcher, $locale, $event->getOptions())
        );
    }
public function handleQueryExecute ( QueryExecuteEvent $ event ) { $ query = $ event -> getQuery ( ) ; $ locale = $ query -> getLocale ( ) ; $ phpcrResult = $ query -> getPhpcrQuery ( ) -> execute ( ) ; $ event -> setResult ( new QueryResultCollection ( $ phpcrResult , $ this -> eventDispatcher , $ locale , $ event -> getOptions ( ) ) ) ; }
Handle query execution.

@param QueryExecuteEvent $event
Handle query execution .