public function findDistinctByRootId($rootId)
    {
        $qb = $this->createQueryBuilder('l')
            ->andWhere('l.rootId = :rootId')
            ->groupBy('l.rootVersion')
            ->setParameter('rootId', $rootId);

        return $qb->getQuery()->getResult();
    }
public function findDistinctByRootId($rootId)
    {
        $qb = $this->createQueryBuilder('l')
            ->andWhere('l.rootId = :rootId')
            ->groupBy('l.rootVersion')
            ->setParameter('rootId', $rootId);

        return $qb->getQuery()->getResult();
    }
public function findDistinctByRootId ( $ rootId ) { $ qb = $ this -> createQueryBuilder ( 'l' ) -> andWhere ( 'l.rootId = :rootId' ) -> groupBy ( 'l.rootVersion' ) -> setParameter ( 'rootId' , $ rootId ) ; return $ qb -> getQuery ( ) -> getResult ( ) ; }
Returns a list of BlockLogEntries distinct by rootId

@param integer $rootId

@return ArrayCollection
Returns a list of BlockLogEntries distinct by rootId