public function getTagsWithCountArrayQueryBuilder($taggableType)
    {
        $qb = $this->getTagsQueryBuilder($taggableType)
            ->groupBy('tagging.tag')
            ->select('tag.'.$this->tagQueryField.', COUNT(tagging.tag) as tag_count')
            ->orderBy('tag_count', 'DESC')
        ;

        return $qb;
    }
public function getTagsWithCountArrayQueryBuilder($taggableType)
    {
        $qb = $this->getTagsQueryBuilder($taggableType)
            ->groupBy('tagging.tag')
            ->select('tag.'.$this->tagQueryField.', COUNT(tagging.tag) as tag_count')
            ->orderBy('tag_count', 'DESC')
        ;

        return $qb;
    }
public function getTagsWithCountArrayQueryBuilder ( $ taggableType ) { $ qb = $ this -> getTagsQueryBuilder ( $ taggableType ) -> groupBy ( 'tagging.tag' ) -> select ( 'tag.' . $ this -> tagQueryField . ', COUNT(tagging.tag) as tag_count' ) -> orderBy ( 'tag_count' , 'DESC' ) ; return $ qb ; }
Returns a query builder built to return tag counts for a given type

@see getTagsWithCountArray
@param $taggableType
@return \Doctrine\ORM\QueryBuilder
Returns a query builder built to return tag counts for a given type