public function getEntitiesIdsForCustomFieldIds($entityClass, $customFieldIds)
    {
        if (!count($customFieldIds)) {
            return array();
        }

        $qb = $this->getEntitiesIdsForCustomFieldIdsQb($entityClass, $customFieldIds);

        $result = $qb->getQuery()->getScalarResult();

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