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

        return $qb->getQuery()->getResult();
    }