You just specify the sum in your select part of the DQL:
$query = Doctrine_Query::create()
->select('sum(amount)')
->from('some_table');
Check out this page in the Doctrine documentation for more info.
Chris Williams
2009-12-02 06:34:28