src/Sulu/Bundle/ResourceBundle/Entity/OperatorRepository.php
protected function getOperatorQuery($locale)
    {
        $qb = $this->createQueryBuilder('operator')
            ->addSelect('operatorValues')
            ->addSelect('translations')
            ->addSelect('operatorValueTranslations')
            ->leftJoin('operator.translations', 'translations', 'WITH', 'translations.locale = :locale')
            ->leftJoin('operator.values', 'operatorValues')
            ->leftJoin(
                'operatorValues.translations',
                'operatorValueTranslations',
                'WITH',
                'operatorValueTranslations.locale = :locale'
            )
            ->setParameter('locale', $locale);

        return $qb;
    }
protected function getOperatorQuery($locale)
    {
        $qb = $this->createQueryBuilder('operator')
            ->addSelect('operatorValues')
            ->addSelect('translations')
            ->addSelect('operatorValueTranslations')
            ->leftJoin('operator.translations', 'translations', 'WITH', 'translations.locale = :locale')
            ->leftJoin('operator.values', 'operatorValues')
            ->leftJoin(
                'operatorValues.translations',
                'operatorValueTranslations',
                'WITH',
                'operatorValueTranslations.locale = :locale'
            )
            ->setParameter('locale', $locale);

        return $qb;
    }
protected function getOperatorQuery ( $ locale ) { $ qb = $ this -> createQueryBuilder ( 'operator' ) -> addSelect ( 'operatorValues' ) -> addSelect ( 'translations' ) -> addSelect ( 'operatorValueTranslations' ) -> leftJoin ( 'operator.translations' , 'translations' , 'WITH' , 'translations.locale = :locale' ) -> leftJoin ( 'operator.values' , 'operatorValues' ) -> leftJoin ( 'operatorValues.translations' , 'operatorValueTranslations' , 'WITH' , 'operatorValueTranslations.locale = :locale' ) -> setParameter ( 'locale' , $ locale ) ; return $ qb ; }
Returns the query for operators.

@param string $locale The locale to load

@return \Doctrine\ORM\QueryBuilder
Returns the query for operators .