src/Data/DefaultDataProviderSqlUtils.php
public static function buildFieldQuery($config, $idProperty)
    {
        if ($config->getIdOnly()) {
            return $idProperty;
        }
        if (null !== $config->getFields()) {
            $fields = \implode(', ', $config->getFields());
            if (false !== \stripos($fields, 'DISTINCT')) {
                return $fields;
            }
            return $idProperty . ', ' . $fields;
        }

        return '*';
    }
public static function buildFieldQuery($config, $idProperty)
    {
        if ($config->getIdOnly()) {
            return $idProperty;
        }
        if (null !== $config->getFields()) {
            $fields = \implode(', ', $config->getFields());
            if (false !== \stripos($fields, 'DISTINCT')) {
                return $fields;
            }
            return $idProperty . ', ' . $fields;
        }

        return '*';
    }
public static function buildFieldQuery ( $ config , $ idProperty ) { if ( $ config -> getIdOnly ( ) ) { return $ idProperty ; } if ( null !== $ config -> getFields ( ) ) { $ fields = \ implode ( ', ' , $ config -> getFields ( ) ) ; if ( false !== \ stripos ( $ fields , 'DISTINCT' ) ) { return $ fields ; } return $ idProperty . ', ' . $ fields ; } return '*' ; }
Build the field list.

Returns all values from $objConfig->getFields() as comma separated list.

@param ConfigInterface $config     The configuration to use.

@param string          $idProperty The name of the id property.

@return string

@deprecated Use DefaultDataProviderDBalUtils::addField. This will be removed.
Build the field list .