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

        $result = [];

        try {
            $rows = $this->getConnection()->fetchAll($query, $parameters);
            foreach ($rows as $row) {
                // cause there is no doctrine equivalent, we take this little detour and restructure the result
                $columnNames = array_keys($row);
                $columnName = $columnNames[0];

                $result[] = $row[$columnName];
            }
        } catch (DBALException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        } catch (PDOException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        }

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

        $result = [];

        try {
            $rows = $this->getConnection()->fetchAll($query, $parameters);
            foreach ($rows as $row) {
                // cause there is no doctrine equivalent, we take this little detour and restructure the result
                $columnNames = array_keys($row);
                $columnName = $columnNames[0];

                $result[] = $row[$columnName];
            }
        } catch (DBALException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        } catch (PDOException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        }

        return $result;
    }
public function getCol ( $ query , $ parameters = [ ] ) { // @deprecated since v6.0 (2016-04-13); Backward compatibility for v5.3.0. $ parameters = $ this -> assureParameterIsAnArray ( $ parameters ) ; // END deprecated $ result = [ ] ; try { $ rows = $ this -> getConnection ( ) -> fetchAll ( $ query , $ parameters ) ; foreach ( $ rows as $ row ) { // cause there is no doctrine equivalent, we take this little detour and restructure the result $ columnNames = array_keys ( $ row ) ; $ columnName = $ columnNames [ 0 ] ; $ result [ ] = $ row [ $ columnName ] ; } } catch ( DBALException $ exception ) { $ exception = $ this -> convertException ( $ exception ) ; $ this -> handleException ( $ exception ) ; } catch ( PDOException $ exception ) { $ exception = $ this -> convertException ( $ exception ) ; $ this -> handleException ( $ exception ) ; } return $ result ; }
Return the first column of all rows of the results of a given sql SELECT or SHOW statement as an numeric array.
Throws an exception for any other statement.

IMPORTANT:
You are strongly encouraged to use prepared statements like this:
$result = DatabaseProvider::getDb->getRow(
'SELECT * 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 The parameters array.

@throws DatabaseErrorException

@return array The values of the first column of a corresponding sql query.
Return the first column of all rows of the results of a given sql SELECT or SHOW statement as an numeric array . Throws an exception for any other statement .