public function initField($q, $field)
    {
        $is_sql_field = ($field instanceof \atk4\data\Field_SQL) || ($field instanceof \atk4\data\Field\Boolean);
        if ($is_sql_field && $field->useAlias()) {
            $q->field($field, $field->short_name);
        } elseif ($is_sql_field) {
            $q->field($field);
        } else {
            $q->field($field->short_name);
        }
    }
public function initField($q, $field)
    {
        $is_sql_field = ($field instanceof \atk4\data\Field_SQL) || ($field instanceof \atk4\data\Field\Boolean);
        if ($is_sql_field && $field->useAlias()) {
            $q->field($field, $field->short_name);
        } elseif ($is_sql_field) {
            $q->field($field);
        } else {
            $q->field($field->short_name);
        }
    }
public function initField ( $ q , $ field ) { $ is_sql_field = ( $ field instanceof \ atk4 \ data \ Field_SQL ) || ( $ field instanceof \ atk4 \ data \ Field \ Boolean ) ; if ( $ is_sql_field && $ field -> useAlias ( ) ) { $ q -> field ( $ field , $ field -> short_name ) ; } elseif ( $ is_sql_field ) { $ q -> field ( $ field ) ; } else { $ q -> field ( $ field -> short_name ) ; } }
Adds Field in Query.

@param \atk4\dsql\Query $q
@param Field            $field
Adds Field in Query .