src/Sedona/SBORuntimeBundle/Datatable/Data/DatatableQuery.php
private function execute()
    {
        $query = $this->qb->getQuery();

        if (true === $this->configs['translation_query_hints']) {
            if (true === $this->doctrineExtensions) {
                $query->setHint(
                    \Doctrine\ORM\Query::HINT_CUSTOM_OUTPUT_WALKER,
                    'Gedmo\\Translatable\\Query\\TreeWalker\\TranslationWalker'
                );

                $query->setHint(
                    \Gedmo\Translatable\TranslatableListener::HINT_TRANSLATABLE_LOCALE,
                    $this->locale
                );

                $query->setHint(
                    \Gedmo\Translatable\TranslatableListener::HINT_FALLBACK,
                    1
                );
            } else {
                throw new \Exception('execute(): "DoctrineExtensions" does not exist.');
            }
        }

        $query->setHydrationMode(Query::HYDRATE_OBJECT);

        return $query;
    }
private function execute()
    {
        $query = $this->qb->getQuery();

        if (true === $this->configs['translation_query_hints']) {
            if (true === $this->doctrineExtensions) {
                $query->setHint(
                    \Doctrine\ORM\Query::HINT_CUSTOM_OUTPUT_WALKER,
                    'Gedmo\\Translatable\\Query\\TreeWalker\\TranslationWalker'
                );

                $query->setHint(
                    \Gedmo\Translatable\TranslatableListener::HINT_TRANSLATABLE_LOCALE,
                    $this->locale
                );

                $query->setHint(
                    \Gedmo\Translatable\TranslatableListener::HINT_FALLBACK,
                    1
                );
            } else {
                throw new \Exception('execute(): "DoctrineExtensions" does not exist.');
            }
        }

        $query->setHydrationMode(Query::HYDRATE_OBJECT);

        return $query;
    }
private function execute ( ) { $ query = $ this -> qb -> getQuery ( ) ; if ( true === $ this -> configs [ 'translation_query_hints' ] ) { if ( true === $ this -> doctrineExtensions ) { $ query -> setHint ( \ Doctrine \ ORM \ Query :: HINT_CUSTOM_OUTPUT_WALKER , 'Gedmo\\Translatable\\Query\\TreeWalker\\TranslationWalker' ) ; $ query -> setHint ( \ Gedmo \ Translatable \ TranslatableListener :: HINT_TRANSLATABLE_LOCALE , $ this -> locale ) ; $ query -> setHint ( \ Gedmo \ Translatable \ TranslatableListener :: HINT_FALLBACK , 1 ) ; } else { throw new \ Exception ( 'execute(): "DoctrineExtensions" does not exist.' ) ; } } $ query -> setHydrationMode ( Query :: HYDRATE_OBJECT ) ; return $ query ; }
Constructs a Query instance.

@return Query

@throws \Exception
Constructs a Query instance .