src/Sulu/Component/Rest/ListBuilder/Doctrine/DoctrineListBuilder.php
protected function getAllFieldNames($expressions)
    {
        $fieldNames = [];
        foreach ($expressions as $expression) {
            if ($expression instanceof ConjunctionExpressionInterface) {
                $fieldNames = array_merge($fieldNames, $expression->getFieldNames());
            } elseif ($expression instanceof BasicExpressionInterface) {
                $fieldNames[] = $expression->getFieldName();
            }
        }

        return $fieldNames;
    }
protected function getAllFieldNames($expressions)
    {
        $fieldNames = [];
        foreach ($expressions as $expression) {
            if ($expression instanceof ConjunctionExpressionInterface) {
                $fieldNames = array_merge($fieldNames, $expression->getFieldNames());
            } elseif ($expression instanceof BasicExpressionInterface) {
                $fieldNames[] = $expression->getFieldName();
            }
        }

        return $fieldNames;
    }
protected function getAllFieldNames ( $ expressions ) { $ fieldNames = [ ] ; foreach ( $ expressions as $ expression ) { if ( $ expression instanceof ConjunctionExpressionInterface ) { $ fieldNames = array_merge ( $ fieldNames , $ expression -> getFieldNames ( ) ) ; } elseif ( $ expression instanceof BasicExpressionInterface ) { $ fieldNames [ ] = $ expression -> getFieldName ( ) ; } } return $ fieldNames ; }
Returns all fieldnames used in the expressions.

@param AbstractDoctrineExpression[] $expressions

@return array
Returns all fieldnames used in the expressions .