Prado\Data\SqlMap\Statements\TMappedStatement::applyResultMap PHP Метод

applyResultMap() защищенный Метод

Apply result mapping.
protected applyResultMap ( $row, &$resultObject = null ) : object
Результат object the result filled with data, null if not filled.
    protected function applyResultMap($row, &$resultObject = null)
    {
        if ($row === false) {
            return null;
        }
        $resultMapName = $this->_statement->getResultMap();
        $resultClass = $this->_statement->getResultClass();
        $obj = null;
        if ($this->getManager()->getResultMaps()->contains($resultMapName)) {
            $obj = $this->fillResultMap($resultMapName, $row, null, $resultObject);
        } else {
            if (strlen($resultClass) > 0) {
                $obj = $this->fillResultClass($resultClass, $row, $resultObject);
            } else {
                $obj = $this->fillDefaultResultMap(null, $row, $resultObject);
            }
        }
        if (class_exists('TActiveRecord', false) && $obj instanceof TActiveRecord) {
            //Create a new clean active record.
            $obj = TActiveRecord::createRecord(get_class($obj), $obj);
        }
        return $obj;
    }