Knp\Bundle\KnpBundlesBundle\Repository\ScoreRepository::getSumEvolution PHP Method

getSumEvolution() public method

Get an array containing dates and sum of scores for this date
public getSumEvolution ( ) : array
return array
    public function getSumEvolution()
    {
        return $this->createQueryBuilder('s')->select('s.date, SUM(s.value) AS sumValues')->groupBy('s.date')->orderBy('s.date', 'asc')->getQuery()->execute();
    }