Doctrine\DBAL\Driver\Mysqli\MysqliStatement::fetchAll PHP Method

fetchAll() public method

public fetchAll ( $fetchMode = null )
    public function fetchAll($fetchMode = null)
    {
        $fetchMode = $fetchMode ?: $this->_defaultFetchMode;
        $rows = array();
        if (PDO::FETCH_COLUMN == $fetchMode) {
            while (($row = $this->fetchColumn()) !== false) {
                $rows[] = $row;
            }
        } else {
            while (($row = $this->fetch($fetchMode)) !== false) {
                $rows[] = $row;
            }
        }
        return $rows;
    }