source/Core/Database/Adapter/Doctrine/Database.php
public function getAll($query, $parameters = [])
    {
        $result = [];
        $statement = null;

        // @deprecated since v6.0 (2016-04-13); Backward compatibility for v5.3.0.
        $parameters = $this->assureParameterIsAnArray($parameters);
        // END deprecated

        try {
            $statement = $this->getConnection()->executeQuery($query, $parameters);
        } catch (DBALException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        } catch (PDOException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        }

        if ($this->doesStatementProduceOutput($query)) {
            $result = $statement->fetchAll();
        } else {
            \OxidEsales\Eshop\Core\Registry::getLogger()->warning('Given statement does not produce output and was not executed', [debug_backtrace()]);
        }

        return $result;
    }
public function getAll($query, $parameters = [])
    {
        $result = [];
        $statement = null;

        // @deprecated since v6.0 (2016-04-13); Backward compatibility for v5.3.0.
        $parameters = $this->assureParameterIsAnArray($parameters);
        // END deprecated

        try {
            $statement = $this->getConnection()->executeQuery($query, $parameters);
        } catch (DBALException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        } catch (PDOException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        }

        if ($this->doesStatementProduceOutput($query)) {
            $result = $statement->fetchAll();
        } else {
            \OxidEsales\Eshop\Core\Registry::getLogger()->warning('Given statement does not produce output and was not executed', [debug_backtrace()]);
        }

        return $result;
    }
public function getAll ( $ query , $ parameters = [ ] ) { $ result = [ ] ; $ statement = null ; // @deprecated since v6.0 (2016-04-13); Backward compatibility for v5.3.0. $ parameters = $ this -> assureParameterIsAnArray ( $ parameters ) ; // END deprecated try { $ statement = $ this -> getConnection ( ) -> executeQuery ( $ query , $ parameters ) ; } catch ( DBALException $ exception ) { $ exception = $ this -> convertException ( $ exception ) ; $ this -> handleException ( $ exception ) ; } catch ( PDOException $ exception ) { $ exception = $ this -> convertException ( $ exception ) ; $ this -> handleException ( $ exception ) ; } if ( $ this -> doesStatementProduceOutput ( $ query ) ) { $ result = $ statement -> fetchAll ( ) ; } else { \ OxidEsales \ Eshop \ Core \ Registry :: getLogger ( ) -> warning ( 'Given statement does not produce output and was not executed' , [ debug_backtrace ( ) ] ) ; } return $ result ; }
Get an multi-dimensional array of arrays with the values of the all rows of a given sql SELECT or SHOW statement.
Returns an empty array for any other statement.

The keys of the first level array are numeric.
The keys of the second level arrays may be numeric, strings or both, depending on the FETCH_MODE_* of the connection.
Set the desired fetch mode with DatabaseInterface::setFetchMode() before calling this method.

IMPORTANT:
You are strongly encouraged to use prepared statements like this:
$result = DatabaseProvider::getDb->getAll(
'SELECT * FROM ´mytable´ WHERE ´id´ = ? OR ´id´ = ? LIMIT 0, 1',
array($id1, $id2)
);
If you do not use prepared statements, you MUST quote variables the values with quote(), otherwise you create a
SQL injection vulnerability.

@param string $query      If parameters are given, the "?" in the string will be replaced by the values in the array
@param array  $parameters Array of parameters, for the given sql statement.

@see DatabaseInterface::setFetchMode()
@see Doctrine::$fetchMode

@throws DatabaseErrorException
@throws \InvalidArgumentException

@return array
Get an multi - dimensional array of arrays with the values of the all rows of a given sql SELECT or SHOW statement . Returns an empty array for any other statement .