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

        if ($this->doesStatementProduceOutput($query)) {
            try {
                return $this->getConnection()->fetchColumn($query, $parameters);
            } catch (DBALException $exception) {
                $exception = $this->convertException($exception);
                $this->handleException($exception);
            } catch (PDOException $exception) {
                $exception = $this->convertException($exception);
                $this->handleException($exception);
            }
        } else {
            \OxidEsales\Eshop\Core\Registry::getLogger()->warning('Given statement does not produce output and was not executed', [debug_backtrace()]);
        }

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

        if ($this->doesStatementProduceOutput($query)) {
            try {
                return $this->getConnection()->fetchColumn($query, $parameters);
            } catch (DBALException $exception) {
                $exception = $this->convertException($exception);
                $this->handleException($exception);
            } catch (PDOException $exception) {
                $exception = $this->convertException($exception);
                $this->handleException($exception);
            }
        } else {
            \OxidEsales\Eshop\Core\Registry::getLogger()->warning('Given statement does not produce output and was not executed', [debug_backtrace()]);
        }

        return false;
    }
public function getOne ( $ query , $ parameters = [ ] ) { // @deprecated since v6.0 (2016-04-13); Backward compatibility for v5.3.0. $ parameters = $ this -> assureParameterIsAnArray ( $ parameters ) ; // END deprecated if ( $ this -> doesStatementProduceOutput ( $ query ) ) { try { return $ this -> getConnection ( ) -> fetchColumn ( $ query , $ parameters ) ; } catch ( DBALException $ exception ) { $ exception = $ this -> convertException ( $ exception ) ; $ this -> handleException ( $ exception ) ; } catch ( PDOException $ exception ) { $ exception = $ this -> convertException ( $ exception ) ; $ this -> handleException ( $ exception ) ; } } else { \ OxidEsales \ Eshop \ Core \ Registry :: getLogger ( ) -> warning ( 'Given statement does not produce output and was not executed' , [ debug_backtrace ( ) ] ) ; } return false ; }
Get the first value of the first row of the result set of a given sql SELECT or SHOW statement.
Returns false for any other statement.

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.

@param string $query      The sql SELECT or SHOW statement.
@param array  $parameters Array of parameters for the given sql statement.

@return string|false      Returns a string for SELECT or SHOW statements and FALSE for any other statement.
Get the first value of the first row of the result set of a given sql SELECT or SHOW statement . Returns false for any other statement .