protected function _execute()
    {
        $this->triggerBeforeFind();
        if ($this->_results) {
            $decorator = $this->_decoratorClass();

            return new $decorator($this->_results);
        }

        $statement = $this->getEagerLoader()->loadExternal($this, $this->execute());

        return new ResultSet($this, $statement);
    }
protected function _execute()
    {
        $this->triggerBeforeFind();
        if ($this->_results) {
            $decorator = $this->_decoratorClass();

            return new $decorator($this->_results);
        }

        $statement = $this->getEagerLoader()->loadExternal($this, $this->execute());

        return new ResultSet($this, $statement);
    }
protected function _execute ( ) { $ this -> triggerBeforeFind ( ) ; if ( $ this -> _results ) { $ decorator = $ this -> _decoratorClass ( ) ; return new $ decorator ( $ this -> _results ) ; } $ statement = $ this -> getEagerLoader ( ) -> loadExternal ( $ this , $ this -> execute ( ) ) ; return new ResultSet ( $ this , $ statement ) ; }
Executes this query and returns a ResultSet object containing the results.
This will also setup the correct statement class in order to eager load deep
associations.

@return \Cake\ORM\ResultSet
Executes this query and returns a ResultSet object containing the results . This will also setup the correct statement class in order to eager load deep associations .