original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Modifies specified query to include this particular field.
  
  @param DB_dsql $select
  
  @return $this
docstring_tokens: Modifies specified query to include this particular field .