public function getPlainSelectedColumns(Criteria $criteria)
    {
        $selected = [];
        foreach ($criteria->getSelectColumns() as $columnName) {
            if (false === strpos($columnName, '(')) {
                $selected[] = $columnName;
            }
        }

        foreach ($criteria->getAsColumns() as $alias => $col) {
            if (false === strpos($col, '(') && !in_array($col, $selected)) {
                $selected[] = $col;
            }
        }

        return $selected;
    }
public function getPlainSelectedColumns(Criteria $criteria)
    {
        $selected = [];
        foreach ($criteria->getSelectColumns() as $columnName) {
            if (false === strpos($columnName, '(')) {
                $selected[] = $columnName;
            }
        }

        foreach ($criteria->getAsColumns() as $alias => $col) {
            if (false === strpos($col, '(') && !in_array($col, $selected)) {
                $selected[] = $col;
            }
        }

        return $selected;
    }
public function getPlainSelectedColumns ( Criteria $ criteria ) { $ selected = [ ] ; foreach ( $ criteria -> getSelectColumns ( ) as $ columnName ) { if ( false === strpos ( $ columnName , '(' ) ) { $ selected [ ] = $ columnName ; } } foreach ( $ criteria -> getAsColumns ( ) as $ alias => $ col ) { if ( false === strpos ( $ col , '(' ) && ! in_array ( $ col , $ selected ) ) { $ selected [ ] = $ col ; } } return $ selected ; }
Returns all selected columns that are selected without a aggregate function.

@param  Criteria $criteria
@return string[]
Returns all selected columns that are selected without a aggregate function .