src/ORM/DataQuery.php
public function max($field)
    {
        $table = DataObject::getSchema()->tableForField($this->dataClass, $field);
        if (!$table) {
            return $this->aggregate("MAX(\"$field\")");
        }
        return $this->aggregate("MAX(\"$table\".\"$field\")");
    }
public function max($field)
    {
        $table = DataObject::getSchema()->tableForField($this->dataClass, $field);
        if (!$table) {
            return $this->aggregate("MAX(\"$field\")");
        }
        return $this->aggregate("MAX(\"$table\".\"$field\")");
    }
public function max ( $ field ) { $ table = DataObject :: getSchema ( ) -> tableForField ( $ this -> dataClass , $ field ) ; if ( ! $ table ) { return $ this -> aggregate ( "MAX(\"$field\")" ) ; } return $ this -> aggregate ( "MAX(\"$table\".\"$field\")" ) ; }
Return the maximum value of the given field in this DataList

@param string $field Unquoted database column name. Will be ANSI quoted
automatically so must not contain double quotes.
@return string
Return the maximum value of the given field in this DataList