src/ORM/DataQuery.php
public function column($field = 'ID')
    {
        $fieldExpression = $this->expressionForField($field);
        $query = $this->getFinalisedQuery(array($field));
        $originalSelect = $query->getSelect();
        $query->setSelect(array());
        $query->selectField($fieldExpression, $field);
        $this->ensureSelectContainsOrderbyColumns($query, $originalSelect);

        return $query->execute()->column($field);
    }
public function column($field = 'ID')
    {
        $fieldExpression = $this->expressionForField($field);
        $query = $this->getFinalisedQuery(array($field));
        $originalSelect = $query->getSelect();
        $query->setSelect(array());
        $query->selectField($fieldExpression, $field);
        $this->ensureSelectContainsOrderbyColumns($query, $originalSelect);

        return $query->execute()->column($field);
    }
public function column ( $ field = 'ID' ) { $ fieldExpression = $ this -> expressionForField ( $ field ) ; $ query = $ this -> getFinalisedQuery ( array ( $ field ) ) ; $ originalSelect = $ query -> getSelect ( ) ; $ query -> setSelect ( array ( ) ) ; $ query -> selectField ( $ fieldExpression , $ field ) ; $ this -> ensureSelectContainsOrderbyColumns ( $ query , $ originalSelect ) ; return $ query -> execute ( ) -> column ( $ field ) ; }
Query the given field column from the database and return as an array.

@param string $field See {@link expressionForField()}.
@return array List of column values for the specified column
Query the given field column from the database and return as an array .