/** * Executes this query and returns a traversable object containing the results * * @return \Traversable */ protected function _execute() { $this->triggerBeforeFind(); if ($this->__resultSet) { $decorator = $this->_decoratorClass(); return new $decorator($this->__resultSet); } return $this->__resultSet = $this->_webservice->execute($this, ['resourceClass' => $this->endpoint()->resourceClass()]); }
/** * Executes this query and returns a traversable object containing the results * * @return \Traversable */ protected function _execute() { $this->triggerBeforeFind(); if ($this->__resultSet) { $decorator = $this->_decoratorClass(); return new $decorator($this->__resultSet); } return $this->__resultSet = $this->_webservice->execute($this); }