protected function _decorateResults($result) { $result = $this->_applyDecorators($result); if (!$result instanceof ResultSet && $this->bufferResults()) { $class = $this->_decoratorClass(); $result = new $class($result->buffered()); } return $result; }