Bundle/BlogBundle/Repository/ArticleRepository.php
public function filterWithListingQuery($listingQuery = null)
    {
        if ($listingQuery) {
            $dql = $this->createQueryBuilder('item')
                ->leftJoin('item.blog', 'blog')
                ->getDql();
            $dql = $dql.' '.$listingQuery;
            $this->qb
                ->andWhere($this->qb->expr()->in('article', $dql));
        }

        return $this;
    }
public function filterWithListingQuery($listingQuery = null)
    {
        if ($listingQuery) {
            $dql = $this->createQueryBuilder('item')
                ->leftJoin('item.blog', 'blog')
                ->getDql();
            $dql = $dql.' '.$listingQuery;
            $this->qb
                ->andWhere($this->qb->expr()->in('article', $dql));
        }

        return $this;
    }
public function filterWithListingQuery ( $ listingQuery = null ) { if ( $ listingQuery ) { $ dql = $ this -> createQueryBuilder ( 'item' ) -> leftJoin ( 'item.blog' , 'blog' ) -> getDql ( ) ; $ dql = $ dql . ' ' . $ listingQuery ; $ this -> qb -> andWhere ( $ this -> qb -> expr ( ) -> in ( 'article' , $ dql ) ) ; } return $ this ; }
Use to assemble ArticleList Query with Filter Query.

@param null $listingQuery

@return $this
Use to assemble ArticleList Query with Filter Query .