src/Zicht/Bundle/UrlBundle/Entity/Repository/StaticReferenceRepository.php
public function getAll($locale)
    {
        $qb = $this->createQueryBuilder('r');

        $qb->addSelect('t');
        $qb->innerJoin('r.translations', 't');
        $qb->andWhere('t.locale=:locale');
        $qb->setParameter(':locale', $locale);

        return $qb->getQuery()->execute();
    }
public function getAll($locale)
    {
        $qb = $this->createQueryBuilder('r');

        $qb->addSelect('t');
        $qb->innerJoin('r.translations', 't');
        $qb->andWhere('t.locale=:locale');
        $qb->setParameter(':locale', $locale);

        return $qb->getQuery()->execute();
    }
public function getAll ( $ locale ) { $ qb = $ this -> createQueryBuilder ( 'r' ) ; $ qb -> addSelect ( 't' ) ; $ qb -> innerJoin ( 'r.translations' , 't' ) ; $ qb -> andWhere ( 't.locale=:locale' ) ; $ qb -> setParameter ( ':locale' , $ locale ) ; return $ qb -> getQuery ( ) -> execute ( ) ; }
Returns the references for the specified locale

@param string $locale
@return mixed
Returns the references for the specified locale