PHP Doctrine\MongoDB\Aggregation Expr::sum - 1 examples found. These are the top rated real world PHP examples of Doctrine\MongoDB\Aggregation\Expr::sum extracted from open source projects. You can rate examples to help us improve the quality of examples.
Calculates and returns the sum of all the numeric values that result from
applying a specified expression to each document in a group of documents
that share the same group by key. Ignores nun-numeric values.
See also:
http://docs.mongodb.org/manual/reference/operator/aggregation/sum/