public function getUnpublishedComments($blogId, $filters)
    {
        if (!isset($filters['hiddenFilters'])) {
            $filters['hiddenFilters'] = [];
        }
        //filter on current blog and post
        $filters['hiddenFilters'] = array_merge(
            $filters['hiddenFilters'],
            [
                'blog' => $blogId,
                'status' => false,
            ]);

        return $this->finder->search('Icap\BlogBundle\Entity\Comment', $filters);
    }
public function getUnpublishedComments($blogId, $filters)
    {
        if (!isset($filters['hiddenFilters'])) {
            $filters['hiddenFilters'] = [];
        }
        //filter on current blog and post
        $filters['hiddenFilters'] = array_merge(
            $filters['hiddenFilters'],
            [
                'blog' => $blogId,
                'status' => false,
            ]);

        return $this->finder->search('Icap\BlogBundle\Entity\Comment', $filters);
    }
public function getUnpublishedComments ( $ blogId , $ filters ) { if ( ! isset ( $ filters [ 'hiddenFilters' ] ) ) { $ filters [ 'hiddenFilters' ] = [ ] ; } //filter on current blog and post $ filters [ 'hiddenFilters' ] = array_merge ( $ filters [ 'hiddenFilters' ] , [ 'blog' => $ blogId , 'status' => false , ] ) ; return $ this -> finder -> search ( 'Icap\BlogBundle\Entity\Comment' , $ filters ) ; }
Get unpublished comments.

@param $blogId
@param $filters

@return array
Get unpublished comments .