original_string: public function titleQuery()
      {
          $query = $this->dsql()->del('fields');
          /** @type Field $el */
          $el = $this->hasElement($this->title_field);
          if ($this->title_field && $el) {
              $el->updateSelectQuery($query);
  
              return $query;
          }
  
          return $query->field($query->concat('Record #', $this->getElement($this->id_field)));
      }
code: public function titleQuery()
      {
          $query = $this->dsql()->del('fields');
          /** @type Field $el */
          $el = $this->hasElement($this->title_field);
          if ($this->title_field && $el) {
              $el->updateSelectQuery($query);
  
              return $query;
          }
  
          return $query->field($query->concat('Record #', $this->getElement($this->id_field)));
      }
code_tokens: public function titleQuery ( ) { $ query = $ this -> dsql ( ) -> del ( 'fields' ) ; /** @type Field $el */ $ el = $ this -> hasElement ( $ this -> title_field ) ; if ( $ this -> title_field && $ el ) { $ el -> updateSelectQuery ( $ query ) ; return $ query ; } return $ query -> field ( $ query -> concat ( 'Record #' , $ this -> getElement ( $ this -> id_field ) ) ) ; }
docstring: Returns query which selects title field
docstring_tokens: Returns query which selects title field