Bundle/BlogBundle/Repository/BlogRepository.php
public function getBlogsForLocale($locale)
    {
        $blogs = $this->joinTranslations($locale)->getInstance()->getQuery()->getResult();

        $this->clearInstance();

        return $blogs;
    }
public function getBlogsForLocale($locale)
    {
        $blogs = $this->joinTranslations($locale)->getInstance()->getQuery()->getResult();

        $this->clearInstance();

        return $blogs;
    }
public function getBlogsForLocale ( $ locale ) { $ blogs = $ this -> joinTranslations ( $ locale ) -> getInstance ( ) -> getQuery ( ) -> getResult ( ) ; $ this -> clearInstance ( ) ; return $ blogs ; }
Get all Blogs for a given locale.

@param $locale

@return array
Get all Blogs for a given locale .