Doctrine\ORM\Query\Expr::sum
Creates a sum mathematical expression with the given arguments.
First argument is considered the left expression and the second is the right expression. When converted to string, it will generated a <left expr> + <right expr>. Example: [php] // u.numChildren + 1 $q->expr()->diff('u.numChildren', '1')
Signature
public function sum(mixed
$x,
mixed
$y )
Parameters
$x
— mixed- Left expression
$y
— mixed- Right expression
Returns
- Math