src/Utils/CustomFieldRepoService.php
public function addAnyCustomFieldId($customFieldId, $firstRootAlias, $qb)
    {
        $alias = 'cf' . $this->parameterCount;
        $qb->join($firstRootAlias . '.customFields', $alias);
        $qb->andWhere($alias . '.fieldId = :fieldId' . $this->parameterCount);
        $qb->setParameter('fieldId' . $this->parameterCount, $customFieldId);
        $this->parameterCount++;

        return $qb;
    }
public function addAnyCustomFieldId($customFieldId, $firstRootAlias, $qb)
    {
        $alias = 'cf' . $this->parameterCount;
        $qb->join($firstRootAlias . '.customFields', $alias);
        $qb->andWhere($alias . '.fieldId = :fieldId' . $this->parameterCount);
        $qb->setParameter('fieldId' . $this->parameterCount, $customFieldId);
        $this->parameterCount++;

        return $qb;
    }
public function addAnyCustomFieldId ( $ customFieldId , $ firstRootAlias , $ qb ) { $ alias = 'cf' . $ this -> parameterCount ; $ qb -> join ( $ firstRootAlias . '.customFields' , $ alias ) ; $ qb -> andWhere ( $ alias . '.fieldId = :fieldId' . $ this -> parameterCount ) ; $ qb -> setParameter ( 'fieldId' . $ this -> parameterCount , $ customFieldId ) ; $ this -> parameterCount ++ ; return $ qb ; }
Method looking for records, where any value of custom field is set.

@param string $customFieldId
@param string $firstRootAlias
@param \Doctrine\ORM\QueryBuilder $qb

@return \Doctrine\ORM\QueryBuilder
Method looking for records where any value of custom field is set .