public function updateSelectQuery($select)
    {
        $p = null;
        if (!empty($this->owner->relations)) {
            $p = $this->owner->table_alias ?: $this->owner->table;
        }

        if ($this->relation) {
            $select->field($this->actual_field ?: $this->short_name, $this->relation->short_name, $this->short_name);
        } elseif (!(is_null($this->actual_field)) && $this->actual_field != $this->short_name) {
            $select->field($this->actual_field, $p, $this->short_name);

            return $this;
        } else {
            $select->field($this->short_name, $p);
        }

        return $this;
    }
public function updateSelectQuery($select)
    {
        $p = null;
        if (!empty($this->owner->relations)) {
            $p = $this->owner->table_alias ?: $this->owner->table;
        }

        if ($this->relation) {
            $select->field($this->actual_field ?: $this->short_name, $this->relation->short_name, $this->short_name);
        } elseif (!(is_null($this->actual_field)) && $this->actual_field != $this->short_name) {
            $select->field($this->actual_field, $p, $this->short_name);

            return $this;
        } else {
            $select->field($this->short_name, $p);
        }

        return $this;
    }
public function updateSelectQuery ( $ select ) { $ p = null ; if ( ! empty ( $ this -> owner -> relations ) ) { $ p = $ this -> owner -> table_alias ? : $ this -> owner -> table ; } if ( $ this -> relation ) { $ select -> field ( $ this -> actual_field ? : $ this -> short_name , $ this -> relation -> short_name , $ this -> short_name ) ; } elseif ( ! ( is_null ( $ this -> actual_field ) ) && $ this -> actual_field != $ this -> short_name ) { $ select -> field ( $ this -> actual_field , $ p , $ this -> short_name ) ; return $ this ; } else { $ select -> field ( $ this -> short_name , $ p ) ; } return $ this ; }
Modifies specified query to include this particular field.

@param DB_dsql $select

@return $this
Modifies specified query to include this particular field .