public function all()
    {
        if ($this->_results !== null) {
            return $this->_results;
        }

        if ($this->_cache) {
            $results = $this->_cache->fetch($this);
        }
        if (!isset($results)) {
            $results = $this->_decorateResults($this->_execute());
            if ($this->_cache) {
                $this->_cache->store($this, $results);
            }
        }
        $this->_results = $results;

        return $this->_results;
    }
public function all()
    {
        if ($this->_results !== null) {
            return $this->_results;
        }

        if ($this->_cache) {
            $results = $this->_cache->fetch($this);
        }
        if (!isset($results)) {
            $results = $this->_decorateResults($this->_execute());
            if ($this->_cache) {
                $this->_cache->store($this, $results);
            }
        }
        $this->_results = $results;

        return $this->_results;
    }
public function all ( ) { if ( $ this -> _results !== null ) { return $ this -> _results ; } if ( $ this -> _cache ) { $ results = $ this -> _cache -> fetch ( $ this ) ; } if ( ! isset ( $ results ) ) { $ results = $ this -> _decorateResults ( $ this -> _execute ( ) ) ; if ( $ this -> _cache ) { $ this -> _cache -> store ( $ this , $ results ) ; } } $ this -> _results = $ results ; return $ this -> _results ; }
Fetch the results for this query.

Will return either the results set through setResult(), or execute this query
and return the ResultSetDecorator object ready for streaming of results.

ResultSetDecorator is a traversable object that implements the methods found
on Cake\Collection\Collection.

@return \Cake\Datasource\ResultSetInterface
Fetch the results for this query .