src/Service/Search.php
private function getQueryFields() : array
    {
        $result = [];
        foreach ($this->criteria as $criteria) {
            $field = $this->table->aliasField($criteria->getField());
            if (! in_array($field, $result)) {
                $result[] = $field;
            }
        }

        foreach ($this->query->clause('select') as $field) {
            if (is_string($field) && ! in_array($field, $result)) {
                $result[] = $field;
            }
        }

        return $result;
    }
private function getQueryFields() : array
    {
        $result = [];
        foreach ($this->criteria as $criteria) {
            $field = $this->table->aliasField($criteria->getField());
            if (! in_array($field, $result)) {
                $result[] = $field;
            }
        }

        foreach ($this->query->clause('select') as $field) {
            if (is_string($field) && ! in_array($field, $result)) {
                $result[] = $field;
            }
        }

        return $result;
    }
private function getQueryFields ( ) : array { $ result = [ ] ; foreach ( $ this -> criteria as $ criteria ) { $ field = $ this -> table -> aliasField ( $ criteria -> getField ( ) ) ; if ( ! in_array ( $ field , $ result ) ) { $ result [ ] = $ field ; } } foreach ( $ this -> query -> clause ( 'select' ) as $ field ) { if ( is_string ( $ field ) && ! in_array ( $ field , $ result ) ) { $ result [ ] = $ field ; } } return $ result ; }
Get search query fields from criteria and select clause.

@return string[]
Get search query fields from criteria and select clause .