source/Core/Database/Adapter/Doctrine/Database.php
public function getRow($query, $parameters = [])
    {
        // @deprecated since v6.0 (2016-04-13); Backward compatibility for v5.3.0.
        $parameters = $this->assureParameterIsAnArray($parameters);
        // END deprecated

        try {
            $resultSet = $this->select($query, $parameters);
            $result = $resultSet->fields;
        } catch (\OxidEsales\Eshop\Core\Exception\DatabaseErrorException $exception) {
            /** Only log exception, do not re-throw here, as legacy code expects this behavior */
            $this->logException($exception);
            $result = [];
        } catch (PDOException $exception) {
            /** Only log exception, do not re-throw here, as legacy code expects this behavior */
            $exception = $this->convertException($exception);
            $this->logException($exception);
            $result = [];
        }

        if (false == $result) {
            $result = [];
        }

        return $result;
    }
public function getRow($query, $parameters = [])
    {
        // @deprecated since v6.0 (2016-04-13); Backward compatibility for v5.3.0.
        $parameters = $this->assureParameterIsAnArray($parameters);
        // END deprecated

        try {
            $resultSet = $this->select($query, $parameters);
            $result = $resultSet->fields;
        } catch (\OxidEsales\Eshop\Core\Exception\DatabaseErrorException $exception) {
            /** Only log exception, do not re-throw here, as legacy code expects this behavior */
            $this->logException($exception);
            $result = [];
        } catch (PDOException $exception) {
            /** Only log exception, do not re-throw here, as legacy code expects this behavior */
            $exception = $this->convertException($exception);
            $this->logException($exception);
            $result = [];
        }

        if (false == $result) {
            $result = [];
        }

        return $result;
    }
public function getRow ( $ query , $ parameters = [ ] ) { // @deprecated since v6.0 (2016-04-13); Backward compatibility for v5.3.0. $ parameters = $ this -> assureParameterIsAnArray ( $ parameters ) ; // END deprecated try { $ resultSet = $ this -> select ( $ query , $ parameters ) ; $ result = $ resultSet -> fields ; } catch ( \ OxidEsales \ Eshop \ Core \ Exception \ DatabaseErrorException $ exception ) { /** Only log exception, do not re-throw here, as legacy code expects this behavior */ $ this -> logException ( $ exception ) ; $ result = [ ] ; } catch ( PDOException $ exception ) { /** Only log exception, do not re-throw here, as legacy code expects this behavior */ $ exception = $ this -> convertException ( $ exception ) ; $ this -> logException ( $ exception ) ; $ result = [ ] ; } if ( false == $ result ) { $ result = [ ] ; } return $ result ; }
Get an array with the values of the first row of a given sql SELECT or SHOW statement .
Returns an empty array for any other statement.
The returned value depends on the fetch mode.

@see DatabaseInterface::setFetchMode() for how to set the fetch mode

The keys of the array 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.

NOTE: Although you might pass any SELECT or SHOW statement to this method, try to limit the result of the
statement to one single row, as the rest of the rows is simply discarded.

IMPORTANT:
You are strongly encouraged to use prepared statements like this:
$result = DatabaseProvider::getDb->getOne(
'SELECT ´id´ FROM ´mytable´ WHERE ´id´ = ? LIMIT 0, 1',
array($id1)
);
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      The sql select statement to be executed.
@param array  $parameters Array of parameters, for the given sql statement.

@return array The row, we selected with the given sql statement.
Get an array with the values of the first row of a given sql SELECT or SHOW statement . Returns an empty array for any other statement . The returned value depends on the fetch mode .