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);
    }
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);
    }
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 ) ; }
Inspects if there are any set fields for selecting, otherwise adds all
the fields for the default table.

@return void
Inspects if there are any set fields for selecting otherwise adds all the fields for the default table .