src/Ease/SQL/PDO.php
public function queryToArray($queryRaw, $keyColumnToIndex = false)
    {
        $resultArray = [];
        if ($this->exeQuery($queryRaw) && is_object($this->result)) {
            if (is_string($keyColumnToIndex)) {
                foreach ($this->result->fetchAll(\PDO::FETCH_ASSOC) as $dataRow) {
                    $resultArray[$dataRow[$keyColumnToIndex]] = $dataRow;
                }
            } else {
                if (($keyColumnToIndex === true) && isset($this->keyColumn)) {
                    foreach ($this->result->fetchAll(\PDO::FETCH_ASSOC) as $dataRow) {
                        $resultArray[$dataRow[$this->keyColumn]] = $dataRow;
                    }
                } else {
                    foreach ($this->result->fetchAll(\PDO::FETCH_ASSOC) as $dataRow) {
                        $resultArray[] = $dataRow;
                    }
                }
            }
        } else {
            return;
        }
        $this->result->closeCursor();

        return $resultArray;
    }
public function queryToArray($queryRaw, $keyColumnToIndex = false)
    {
        $resultArray = [];
        if ($this->exeQuery($queryRaw) && is_object($this->result)) {
            if (is_string($keyColumnToIndex)) {
                foreach ($this->result->fetchAll(\PDO::FETCH_ASSOC) as $dataRow) {
                    $resultArray[$dataRow[$keyColumnToIndex]] = $dataRow;
                }
            } else {
                if (($keyColumnToIndex === true) && isset($this->keyColumn)) {
                    foreach ($this->result->fetchAll(\PDO::FETCH_ASSOC) as $dataRow) {
                        $resultArray[$dataRow[$this->keyColumn]] = $dataRow;
                    }
                } else {
                    foreach ($this->result->fetchAll(\PDO::FETCH_ASSOC) as $dataRow) {
                        $resultArray[] = $dataRow;
                    }
                }
            }
        } else {
            return;
        }
        $this->result->closeCursor();

        return $resultArray;
    }
vraci vysledek SQL dotazu $QueryRaw jako pole (uchovavane take jako $this->Resultarray).

@param string $queryRaw
@param string $keyColumnToIndex umožní vrátit pole výsledků číslovaných podle $DataRow[$KeyColumnToIndex];

@return array