Angejia\Pea\QueryBuilder::get PHP Method

get() public method

public get ( $columns = ['*'] )
    public function get($columns = ['*'])
    {
        if ($this->model) {
            $this->fireEvent('get');
        }
        if (!$this->needCache()) {
            return parent::get($columns);
        }
        if (!$this->columns && self::hasRawColumn($columns)) {
            $this->columns = $columns;
        }
        if ($this->isAwful()) {
            return $this->getAwful();
        } elseif ($this->isNormal()) {
            return $this->getAwful();
        } else {
            return $this->getSimple();
        }
    }