Prado\Data\SqlMap\Statements\TMappedStatement::fillPropertyWithResultMap PHP Method

fillPropertyWithResultMap() protected method

Fills the property with result mapping results.
protected fillPropertyWithResultMap ( $resultMap, $row, &$resultObject ) : boolean
return boolean true if the data was found, false otherwise.
    protected function fillPropertyWithResultMap($resultMap, $row, &$resultObject)
    {
        $dataFound = false;
        foreach ($resultMap->getColumns() as $property) {
            $this->_IsRowDataFound = false;
            $this->setObjectProperty($resultMap, $property, $row, $resultObject);
            $dataFound = $dataFound || $this->_IsRowDataFound;
        }
        $this->_IsRowDataFound = $dataFound;
        return $dataFound;
    }