public function getEntitiesIdsForCustomFieldId($entityClass, $customFieldId)
    {
        $qb = $this->mr->getManager()->getRepository($entityClass)->createQueryBuilder('e');
        $qb->join('e.customFields', 'cf')
           ->select('e.id')
           ->where('cf.id = :id')
           ->setParameter('id', $customFieldId);
        $result = $qb->getQuery()->getScalarResult();

        return array_column($result, 'id');
    }