src/Titon/Db/Query.php
public function getFields() {
        $fields = $this->_fields;

        if ($this->getJoins() && !$fields && $this->getType() === self::SELECT) {
            return array_keys($this->getRepository()->getSchema()->getColumns());
        }

        return $fields;
    }
public function getFields() {
        $fields = $this->_fields;

        if ($this->getJoins() && !$fields && $this->getType() === self::SELECT) {
            return array_keys($this->getRepository()->getSchema()->getColumns());
        }

        return $fields;
    }
public function getFields ( ) { $ fields = $ this -> _fields ; if ( $ this -> getJoins ( ) && ! $ fields && $ this -> getType ( ) === self :: SELECT ) { return array_keys ( $ this -> getRepository ( ) -> getSchema ( ) -> getColumns ( ) ) ; } return $ fields ; }
Return the list of fields and or values.
Return all table fields if a join exists and no fields were whitelisted.

@return string[]
Return the list of fields and or values . Return all table fields if a join exists and no fields were whitelisted .