Bundle/BlogBundle/Repository/BlogRepository.php
public function hasMultipleBlog()
    {
        $queryBuilder = $this->createQueryBuilder('blog')
            ->select('b_translation.id')
            ->join('blog.translations', 'b_translation');

        return count($queryBuilder->getQuery()->getResult()) >= 1;
    }
public function hasMultipleBlog()
    {
        $queryBuilder = $this->createQueryBuilder('blog')
            ->select('b_translation.id')
            ->join('blog.translations', 'b_translation');

        return count($queryBuilder->getQuery()->getResult()) >= 1;
    }
public function hasMultipleBlog ( ) { $ queryBuilder = $ this -> createQueryBuilder ( 'blog' ) -> select ( 'b_translation.id' ) -> join ( 'blog.translations' , 'b_translation' ) ; return count ( $ queryBuilder -> getQuery ( ) -> getResult ( ) ) >= 1 ; }
Return true if at least one Blog has multiple translations.

@return bool
Return true if at least one Blog has multiple translations .