src/Sulu/Component/Content/Query/ContentQueryExecutor.php
private function createSql2Query($sql2, $limit = null, $offset = null)
    {
        $queryManager = $this->sessionManager->getSession()->getWorkspace()->getQueryManager();
        $query = $queryManager->createQuery($sql2, 'JCR-SQL2');

        if ($limit) {
            $query->setLimit($limit);
        }
        if ($offset) {
            $query->setOffset($offset);
        }

        return $query;
    }
private function createSql2Query($sql2, $limit = null, $offset = null)
    {
        $queryManager = $this->sessionManager->getSession()->getWorkspace()->getQueryManager();
        $query = $queryManager->createQuery($sql2, 'JCR-SQL2');

        if ($limit) {
            $query->setLimit($limit);
        }
        if ($offset) {
            $query->setOffset($offset);
        }

        return $query;
    }
private function createSql2Query ( $ sql2 , $ limit = null , $ offset = null ) { $ queryManager = $ this -> sessionManager -> getSession ( ) -> getWorkspace ( ) -> getQueryManager ( ) ; $ query = $ queryManager -> createQuery ( $ sql2 , 'JCR-SQL2' ) ; if ( $ limit ) { $ query -> setLimit ( $ limit ) ; } if ( $ offset ) { $ query -> setOffset ( $ offset ) ; } return $ query ; }
returns a sql2 query.
returns a sql2 query .