lib/Doctrine/ORM/Query/SqlWalker.php
public function walkArithmeticPrimary($primary)
    {
        if ($primary instanceof AST\SimpleArithmeticExpression) {
            return '(' . $this->walkSimpleArithmeticExpression($primary) . ')';
        }

        if ($primary instanceof AST\Node) {
            return $primary->dispatch($this);
        }

        return $this->walkEntityIdentificationVariable($primary);
    }
public function walkArithmeticPrimary($primary)
    {
        if ($primary instanceof AST\SimpleArithmeticExpression) {
            return '(' . $this->walkSimpleArithmeticExpression($primary) . ')';
        }

        if ($primary instanceof AST\Node) {
            return $primary->dispatch($this);
        }

        return $this->walkEntityIdentificationVariable($primary);
    }
public function walkArithmeticPrimary ( $ primary ) { if ( $ primary instanceof AST \ SimpleArithmeticExpression ) { return '(' . $ this -> walkSimpleArithmeticExpression ( $ primary ) . ')' ; } if ( $ primary instanceof AST \ Node ) { return $ primary -> dispatch ( $ this ) ; } return $ this -> walkEntityIdentificationVariable ( $ primary ) ; }
Walks down an ArithmeticPrimary that represents an AST node, thereby generating the appropriate SQL.

@param mixed $primary

@return string The SQL.
Walks down an ArithmeticPrimary that represents an AST node thereby generating the appropriate SQL .