original_string: protected function _addDefaultFields()
      {
          $select = $this->clause('select');
          $this->_hasFields = true;
  
          /** @var \Cake\ORM\Table $repository */
          $repository = $this->getRepository();
  
          if (!count($select) || $this->_autoFields === true) {
              $this->_hasFields = false;
              $this->select($repository->getSchema()->columns());
              $select = $this->clause('select');
          }
  
          $aliased = $this->aliasFields($select, $repository->getAlias());
          $this->select($aliased, true);
      }
code: protected function _addDefaultFields()
      {
          $select = $this->clause('select');
          $this->_hasFields = true;
  
          /** @var \Cake\ORM\Table $repository */
          $repository = $this->getRepository();
  
          if (!count($select) || $this->_autoFields === true) {
              $this->_hasFields = false;
              $this->select($repository->getSchema()->columns());
              $select = $this->clause('select');
          }
  
          $aliased = $this->aliasFields($select, $repository->getAlias());
          $this->select($aliased, true);
      }
code_tokens: protected function _addDefaultFields ( ) { $ select = $ this -> clause ( 'select' ) ; $ this -> _hasFields = true ; /** @var \Cake\ORM\Table $repository */ $ repository = $ this -> getRepository ( ) ; if ( ! count ( $ select ) || $ this -> _autoFields === true ) { $ this -> _hasFields = false ; $ this -> select ( $ repository -> getSchema ( ) -> columns ( ) ) ; $ select = $ this -> clause ( 'select' ) ; } $ aliased = $ this -> aliasFields ( $ select , $ repository -> getAlias ( ) ) ; $ this -> select ( $ aliased , true ) ; }
docstring: Inspects if there are any set fields for selecting, otherwise adds all
  the fields for the default table.
  
  @return void
docstring_tokens: Inspects if there are any set fields for selecting otherwise adds all the fields for the default table .