src/Utils/CustomFieldRepoService.php
public function getEntitiesIdsForCustomFieldIds($entityClass, $customFieldIds)
    {
        if (!count($customFieldIds)) {
            return array();
        }

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

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

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

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

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

        return array_column($result, 'id');
    }
public function getEntitiesIdsForCustomFieldIds ( $ entityClass , $ customFieldIds ) { if ( ! count ( $ customFieldIds ) ) { return array ( ) ; } $ qb = $ this -> getEntitiesIdsForCustomFieldIdsQb ( $ entityClass , $ customFieldIds ) ; $ result = $ qb -> getQuery ( ) -> getScalarResult ( ) ; return array_column ( $ result , 'id' ) ; }
Retrieves all entities from a given class which are linked to a set of CustomField

@param string $entityClass   Must be an entity stored in the database
@param array  $customFieldIds The array of IDs of the customField base entities to match with

@return array Contains all found entity IDs which point to any of the customFields in customFieldIds
Retrieves all entities from a given class which are linked to a set of CustomField