/** * Retorna o resultaddo da pesquisa em DataViewObject. * @example ModelAbstract::getDataViewObject * @code * <?php * ... * $model->getDataViewObject(); * ... * ?> * @endcode * @return DataViewObject * */ public function getDataViewObject() { $tmpResult = $this->_resultSet->fetch(); if (NULL == $tmpResult) { $this->_isValueObjectNull = TRUE; } return DataViewObject::factory(!$tmpResult ? new \stdClass() : (object) $tmpResult); }