Qualquer maneira de usar SHA1 no DQL

DQL abaixo gera um erro:[Syntax Error] line 0, col 42: Error: Expected known function, got 'sha1'

Alguma maneira de usar o SHA1?

public function findIdByDql($hashId)
{
    $em = $this->getEntityManager();
    $query = $em->createQuery('DELETE FROM CarBrandBundle:Brands b WHERE sha1(b.id) = :id')
                ->setParameter('id', $hashId)
                ->execute();

    return;
}

questionAnswers(1)

yourAnswerToTheQuestion