public function fetchChartData(array $filters = [], $unique = false)
    {
        $qb = $this->createQueryBuilder('obj');

        if (true === $unique) {
            $qb->select('obj.shortDateLog as date, COUNT(DISTINCT obj.doer) as total');
        } else {
            $qb->select('obj.shortDateLog as date, COUNT(obj.id) as total');
        }
        $qb
            ->orderBy('date', 'ASC')
            ->groupBy('date');

        $this->finder->configureQueryBuilder($qb, $filters);

        return $qb->getQuery()->getResult();
    }
public function fetchChartData(array $filters = [], $unique = false)
    {
        $qb = $this->createQueryBuilder('obj');

        if (true === $unique) {
            $qb->select('obj.shortDateLog as date, COUNT(DISTINCT obj.doer) as total');
        } else {
            $qb->select('obj.shortDateLog as date, COUNT(obj.id) as total');
        }
        $qb
            ->orderBy('date', 'ASC')
            ->groupBy('date');

        $this->finder->configureQueryBuilder($qb, $filters);

        return $qb->getQuery()->getResult();
    }
public function fetchChartData ( array $ filters = [ ] , $ unique = false ) { $ qb = $ this -> createQueryBuilder ( 'obj' ) ; if ( true === $ unique ) { $ qb -> select ( 'obj.shortDateLog as date, COUNT(DISTINCT obj.doer) as total' ) ; } else { $ qb -> select ( 'obj.shortDateLog as date, COUNT(obj.id) as total' ) ; } $ qb -> orderBy ( 'date' , 'ASC' ) -> groupBy ( 'date' ) ; $ this -> finder -> configureQueryBuilder ( $ qb , $ filters ) ; return $ qb -> getQuery ( ) -> getResult ( ) ; }
Fetches data for line chart.

@param array $filters
@param bool  $unique

@return array
Fetches data for line chart .