public function findNodeIdByIncludedPathSiteIdAndLanguage($path, $siteId, $language)
    {
        $qb = $this->createQueryBuilder()->hydrate(false);
        $qb->field('siteId')->equals($siteId)
           ->field('language')->equals($language)
           ->field('deleted')->equals(false)
           ->field('path')->equals(new MongoRegex('/^'.$path.'(\/.*)?$/'))
           ->distinct('nodeId');

        return $qb->getQuery()->execute()->toArray();
    }
public function findNodeIdByIncludedPathSiteIdAndLanguage($path, $siteId, $language)
    {
        $qb = $this->createQueryBuilder()->hydrate(false);
        $qb->field('siteId')->equals($siteId)
           ->field('language')->equals($language)
           ->field('deleted')->equals(false)
           ->field('path')->equals(new MongoRegex('/^'.$path.'(\/.*)?$/'))
           ->distinct('nodeId');

        return $qb->getQuery()->execute()->toArray();
    }
@param string $path
@param string $siteId
@param string $language

@throws \Doctrine\ODM\MongoDB\MongoDBException

@return array