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

fillArrayResultMap() protected method

Retrieve the result map as an array.
protected fillArrayResultMap ( $resultMap, $row, $resultObject ) : array
return array array list of result objects.
    protected function fillArrayResultMap($resultMap, $row, $resultObject)
    {
        $result = array();
        $registry = $this->getManager()->getTypeHandlers();
        foreach ($resultMap->getColumns() as $column) {
            if ($column->getType() === null && $resultObject !== null && !is_object($resultObject)) {
                $column->setType(gettype($resultObject));
            }
            $result[$column->getProperty()] = $column->getPropertyValue($registry, $row);
        }
        return $result;
    }